-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot select inline node at the end of a line or document #2690
Comments
Having a look into this, it appears this behaviour is caused by the Specifically, setting Tiptap.ProseMirror-Separator.bug.movPerhaps @philippkuehn can weigh in with what styling the above commit was trying to solve; to work out if it's safe to revert - or to hunt around for CSS that won't cause this conflict :) |
Thanks! I was able to work around it by overriding the width, and also removing any right-side margin from my nodes for the same reason. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@nperez0111 This is marked as fixed on the release notes, but the still is still opened. |
Sorry yea need to be better on closing issues. It is resolved |
What’s the bug you are facing?
Tiptap does not support selecting inline nodes with the mouse when dragging from right to left, if the node occurs at the end of a line (or is the only element on the line).
Selecting from left-to-right works, as does right-to-left if the node is not at the end of the line.
Oddly, if the cursor is very slightly inside the node on mouse down, selection works as expected (see gif), but only for non-draggable nodes.
How can we reproduce the bug on our side?
Can you provide a CodeSandbox?
https://tiptap.dev/api/nodes/emoji
What did you expect to happen?
Element should be selected, the same way it is if element is not at the end of the line.
Anything to add? (optional)
This issue does not occur in Prosemirror:
https://prosemirror.net/examples/dino/
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: