Skip to content
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 use two block node editors at the same time #1194

Closed
bigabig opened this issue Oct 30, 2024 · 1 comment · Fixed by #1341
Closed

Cannot use two block node editors at the same time #1194

bigabig opened this issue Oct 30, 2024 · 1 comment · Fixed by #1341
Labels
bug Something isn't working

Comments

@bigabig
Copy link

bigabig commented Oct 30, 2024

Describe the bug
In my react application, I have two completely different components that are both using BlockNote. Both components are visible at the same time under some circumstances. All features but one are working perfectly fine: Dragging & dropping blocks to re-arrange them.

If I drag and drop a block in one editor, this block is duplicated in the other editor!

My wild guess is, that both editors are listening to the same "drag-and-drop" event, and are both reacting to it accordingly.

To Reproduce

  1. render two BlockNote editors next to each other
  2. type some text in both editors (e.g. create 3 normal text blocks in each editor)
  3. drag and drop text in one editor, you will notice the dragged text also appears in the other editor

Misc

    "@blocknote/core": "^0.17.1",
    "@blocknote/mantine": "^0.17.1",
    "@blocknote/react": "^0.17.1",
@bigabig bigabig added the bug Something isn't working label Oct 30, 2024
@jestelb
Copy link

jestelb commented Dec 12, 2024

@YousefED - is there any upcoming fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants