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

[dashboard] Dragging state not reset in Chrome on drop in the address bar #7947

Open
web-padawan opened this issue Oct 7, 2024 · 1 comment

Comments

@web-padawan
Copy link
Member

Description

When dragging the item and dropping it to the browser address bar, this happens:

dashboard-drag.mp4

Looking at the devtools I see that dragging attribute is not reset so the item isn't shown.

Expected outcome

Expected the item to be visible after dragging.

Minimal reproducible example

Use the dev page.

Steps to reproduce

Drag the item to the browser address bar and drop it (see the video). Note, seems to only happen in Chrome.

Environment

Vaadin version(s): 24.6 (dashboard branch)
OS: Mac OS

Browsers

Chrome

@tomivirkki
Copy link
Member

Seems that in case (or if you drop outside the browser window) a "dragend" event never gets dispatched, which is against how HTML DnD should work: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Drag_operations#finishing_a_drag

That would suggest it could be another DnD-related regression in Chromium (in addition to #7770)

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

No branches or pull requests

2 participants