-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Affected Packages
@tiptap/extension-collaboration,@tiptap/extension-collaboration-caret,@tiptap/react
Version(s)
3.11.0
Bug Description
Users A and B are collaborating on the same document. Cursor position of user A is at the bottom of a scrollable editor, so that the top is out of view. If User B starts making selections at the top of the editor, User A's view unexpectedly scrolls upwards towards User B's cursor, rather than maintaining its position.
Browser Used
Chrome
Code Example URL
https://codesandbox.io/p/sandbox/zealous-herschel-wghdc4
Expected Behavior
Editor scroll does not move when other users are moving cursor position
Additional Context (Optional)
I encountered this bug in my app which has many more editor extensions and uses Hocuspocus. I thought it was a conflict between CollaborationCaret and BubbleMenu since removing one or the other seemed to fixed the issue. Created the codesandbox to narrow down the problem and was able to replicate it without BubbleMenu.
Dependency Updates
- Yes, I've updated all my dependencies.
