ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.59k stars 335 forks source link

Pressing ArrowUp cannot move text cursor #1406

Closed ocavue closed 1 year ago

ocavue commented 1 year ago

After upgrading prosemirror-view from 1.31.6 to 1.31.7, we found a bug with text cursor movement. If the cursor is right after an inline atom node, pressing ArrowUp cannot move the cursor anymore.

Reproduction:

  1. Open the following two links. They are the same code, but one is using prosemirror-view 1.31.6 and another is using 1.31.7
  2. Put the text cursor at the end of the yellow InlineAtom node
  3. Press ArrowUp

Expected behavior: the text cursor moves up

https://github.com/ProseMirror/prosemirror/assets/24715727/ae475e49-f863-49f8-9966-2768fa6e4705

Actually behavior: in the 1.31.7 demo, the text cursor doesn't move

https://github.com/ProseMirror/prosemirror/assets/24715727/bf805cc9-1874-4890-a6d0-92db8fb16ade

marijnh commented 1 year ago

This patch should help.

ocavue commented 1 year ago

Thank you!