You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a draggable element that also functions as DropdownMenuTrigger.
Unfortunately, I think the implementation opens the menu after an onPointerDown event. It seems that this is raised before the onDragStart event, which means that the submenu is always opened and we can't implement dragging behavior
Current Behavior
Drag event (onDragStart) is never fired, and the menu always opens when start dragging
Expected behavior
Only a Click should open the menu. Dragging should fire the onDragStart event
Misc
For context, what I'm trying to implement is similar to the "Drag handle" in Notion, where a click opens a menu, but the handle can also be dragged to drag blocks around:
The text was updated successfully, but these errors were encountered:
Bug report
I want to create a draggable element that also functions as DropdownMenuTrigger.
Unfortunately, I think the implementation opens the menu after an
onPointerDown
event. It seems that this is raised before theonDragStart
event, which means that the submenu is always opened and we can't implement dragging behaviorCurrent Behavior
Drag event (
onDragStart
) is never fired, and the menu always opens when start draggingExpected behavior
Only a Click should open the menu. Dragging should fire the
onDragStart
eventMisc
For context, what I'm trying to implement is similar to the "Drag handle" in Notion, where a click opens a menu, but the handle can also be dragged to drag blocks around:
The text was updated successfully, but these errors were encountered: