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

No drag event when double-clicking in parent container before dragging [Chrome + Edge] #135

Open
tomzahn opened this issue Oct 7, 2024 · 0 comments

Comments

@tomzahn
Copy link

tomzahn commented Oct 7, 2024

There appears to be an odd issue in Chrome and Edge (can't reproduce it in Safari or FF) when the user double-clicks in a parent container of a draggable prior to dragging.

I have put together a simple React app that shows a full-page div containing a simple table with four cells that are each draggables. Dragging of an individual table cell works perfectly initially. The drag action takes a photo of the cell to be dragged and dragging works as expected and the draggable's onDragStart fires as expected:

image

However, if one double-clicks anywhere in the (light blue) container div prior to initiating the drag action, then dragging itself does take place but with a strange artefact in that the photo seems to be that of all sibling draggables (i.e. all table cells) and astonishingly, no onDragStart fires:

image

image

The dragging stays in this state until it is "reset" by single-clicking in the container div again.

I wonder if this is some odd focus issue maybe?

You can find my test app here:
Codesandbox test app

My set up:
macOS 14.7
[email protected]
@atlaskit/[email protected]
Chrome / Edge : latest builds (129)

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

1 participant