When using Liveblocks and Yjs subdocuments, TipTap collaboration cursors on fragments become duplicated (appearing in other fragments) and "entangled" (moving in tandem) across the parent Y.Doc and sibling subdocs, depending on the length of fragment content.
Affected Packages
extension-collaboration-cursor, extension-collaboration, react
Version(s)
2.4.0
Bug Description
When using Liveblocks and Yjs subdocuments, TipTap collaboration cursors on fragments become duplicated (appearing in other fragments) and "entangled" (moving in tandem) across the parent Y.Doc and sibling subdocs, depending on the length of fragment content.
https://github.com/ueberdosis/tiptap/assets/19484719/20a18a1d-d5cc-4274-9542-2151d08b03dd
Browser Used
Chrome
Code Example URL
https://github.com/ideosyncretic/liveblocks-tiptap-yjs-subdocs-collabcursor
Expected Behavior
Collaboration cursor state should not sync to unrelated fragments.
Additional Context (Optional)
Dependency Updates