Skip to content

BlockNote takes over my drag and drop #1968

@sb8244

Description

@sb8244

Describe the bug
My app's drag and drop stopped working. I traced it back to when within 250px of a BlockNote editor, my app's drop handlers will not execute (React-dnd)

To Reproduce
Use React-Dnd within 250px of an editor instance. I think this is a bit cumbersome to actually setup a reproduction for.

Misc

In SideMenuPlugin/onDragOver, if I comment out this.dispatchSyntheticEvent(event);, then the issue doesn't happen. The onDragOver callback is being processed even if not relevant to the drag event.

I recorded a quick video of the issue happening: https://www.loom.com/share/5e83087f54fa4d07a4718bb6466b1a9d

I am on the latest BlockNote release.

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions