Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draggable and onDragStart #2867

Open
YousefED opened this issue Apr 25, 2024 · 1 comment
Open

Draggable and onDragStart #2867

YousefED opened this issue Apr 25, 2024 · 1 comment

Comments

@YousefED
Copy link

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 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:

image
@NILAXY
Copy link

NILAXY commented May 21, 2024

Not having the ability to use dropdown or context menus on draggable items is a deal breaker for dashboards unfortunately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants