[Bug]: EditorContent refs merged incorrectly #6170
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
react
Version(s)
2.9.1
Bug Description
I have 3 tip tap editors on a page for a use case of mine, each of them has a ref attached to it, and an event listener to listen clicks.
All the logs point to a given editor and only when I click that given editor something gets logged. But if I wrap the
<EditorContent />
in a div and attach refs to the divs, all works properly.Browser Used
Chrome
Code Example URL
No response
Expected Behavior
Each
<EditorContent/>
should behave like any other div when aref
is attached to it, no matter how many instances of it are present in thedocument
.Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: