Skip to content

Unable to drag the first time when implement custom drag menu handler #1780

Closed as not planned
@leTranTienPhat

Description

@leTranTienPhat

I have a simple custom drag menu handler component, but whenever I use that custom drag menu, the first time I drag the block, it always never work. Only the second time I try to drag it, then it will be able to drag. Console will throw an error message like this on 2nd attempt

Image

This is how I insert my custom drag menu
Image

this is My custom Drag Menu Implement (I tested this case where I only re-insert the default component, and the bug is still there)
Image

If i comment the whole sideMenu props of SideMenuController, then the dragging function will work normally, but as I insert any kind of custom component inside it, whether it is the already built-in components, or my own custom, it will cause the issue to happen.

Misc

  • Node version: v20.18.0
  • Package manager: yarn
  • Browser: Brave

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