-
-
Notifications
You must be signed in to change notification settings - Fork 623
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I have a notes list, select list item will refresh blocknote content,
The scenario is
request content from server -> remove all blocks -> insert all blocks
Pseudocode:
editor.removeBlocks(editor.topLevelBlocks.map(_ => _.id))
editor.insertBlocks(blockList, id, 'before')
After that, when you open Color menu, the whole sidemenu will always follow the mouse, changing hover blocks, without correct frozen.
To Reproduce
- init a content
- Clear all blocks
- init a new content
- repeat more than 2 times
And I find it, when you refresh content, SideMenuPlugin will bind more than 1 times, it will cause mousemove
event bind many times.
So, I guess, is that a proper way to refresh blocknote content? Or my way is not correct?
Misc
- Node version: v18.17.0
- Package manager: 9.8.0
- Browser: 120.0.6099.109
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working