Can't undo in Draw?

My drawing steps in Excalidraw don’t seem to get recorded. Whenever I do Ctrl+z after drawing some lines or shapes, the command gets picked up by Logseq instead of Excalidraw, undoing the insertion of the Logseq [[draw/...]] tag, such that the entire Excalidraw canvas gets removed, losing all its content (and Ctrl+y won’t redo to recover it).