You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using useEmoji in an editor that uses also TablePresent and a custom NodeExtension. If the editor content contains an instance of the custom NodeExtension, pressing : makes the editor loose the focus.
Further debugging showed that the cursor gets automatically positioned to the end of the document (instead of where the colon is). I couldn't find out what is moving the cursor to there.
The text was updated successfully, but these errors were encountered:
Summary
I'm using
useEmoji
in an editor that uses also TablePresent and a custom NodeExtension. If the editor content contains an instance of the custom NodeExtension, pressing:
makes the editor loose the focus.Steps to reproduce
:
at the end of the first line (i.e. above the custom NodeExtension)Here is a recording of the reproduction scenario in codesandbox: https://discord.com/channels/726035064831344711/745695521305526302/773204651490672711
Expected results
The editor looses the focus.
Actual results
The editor should allow to type further the emoji name.
The reproduction case does work if TablePreset isn't added or if there is no instance of NodeExtension in the document.
Possible Solution
useEmoji
ejects with reasonmove-end
. This is caused by this block inprosemirror-suggest
:remirror/packages/prosemirror-suggest/src/suggest-utils.ts
Line 333 in 706d207
Further debugging showed that the cursor gets automatically positioned to the end of the document (instead of where the colon is). I couldn't find out what is moving the cursor to there.
The text was updated successfully, but these errors were encountered: