When targeting a paragraph that wraps, there’s strange behaviour when using shift up to select when one line is longer than another. Selection seems to freeze, and transactions seem to stop.
Reproduction:
- Visit ProseMirror basic example
- Make a single paragraph where the second wrapped line is longer than the first
- Target the end of the second (longer) line, and press shift up. Now press shift up again
Expected: Both lines are selected. Pressing shift up will continue selecting contents of the document above. Actual: Only the second line is selected, and shift up does nothing if pressed again
I couldn’t get into the filterTransaction
method of a plugin by using shift up when in this state.