BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Failed Block Deletion with custom delete handler in Side Menu

Open natti-tamnoon opened this issue 1 year ago • 0 comments

Describe the bug adding delete button to side menu causes failed deletes occasionally

To Reproduce can use the example from docs with custom delete handle: https://www.blocknotejs.org/docs/side-menu#custom-side-menu

add five or so blocks. Start deleting from the top in succession. Block Id references get lost and app crashes. Something with the block ids gets out of sync.

error seen: /App.tsx: Blocks with the following IDs could not be found in the editor: fba2f81f-8bb7-43c5-8f90-36d2701eba5a (22:36)

Misc A custom delete handle at top level is preferable UX than using the delete inside the drag handle, but the inconsistent behavior is a blocker.

natti-tamnoon avatar Feb 15 '24 17:02 natti-tamnoon