TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
6.71k stars 461 forks source link

TypeError: Cannot read properties of undefined (reading 'nodeType') #1246

Open mieradi opened 8 hours ago

mieradi commented 8 hours ago

Describe the bug I have a few instances of BlockNote on my page. One on initial render, and others that come from a side nav when clicked. When I render an image or custom block in the side nav instance and perform a drag, I get the error a type error.

TypeError: Cannot read properties of undefined (reading 'nodeType')

https://github.com/user-attachments/assets/ff4ce173-30e6-4587-905f-fb306cd3da30

To Reproduce 1 - Mount an instance of BockNote on a page 2 - Conditionally mount a second instance of BlockNote 3 - Create a custom block 4 - Render custom block in the conditionally instance of BlockNote 5 - Perform drag on custom block

Misc

YousefED commented 8 hours ago

Thanks for reporting and sponsoring!

We'll aim look into this next week 👍

mieradi commented 8 hours ago

Thanks for reporting and sponsoring!

We'll aim look into this next week 👍

Thank you kindly!