-
Notifications
You must be signed in to change notification settings - Fork 66
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
Grid elements created with LitRenderer or ComponentRenderer cannot be used to drag and drop #6306
Comments
Hi @borjab vaadin-grid vaadin-avatar {
pointer-events: none
} |
Hi @tomivirkki The workaround works as charm. Not only for images but also for other components like Urls using the Anchor element. Thank you very much for the help. P.S: I assume from you comment that I should leave the bug open |
I'm glad it worked. Let's leave this issue open so we can properly fix the bug in the components. It should be possible to render avatars etc in the grid cells without having to use workarounds. |
Closed by vaadin/web-components#7431 and vaadin/docs#3444 |
Description
When I drag from components created as
ValueProvider
I can drag and drop normally. However, any element created using eitherLitRenderer
orComponentRenderer
do not work.Debugging, I see that there is no
DragStartListener
event triggered.Expected outcome
I would expect the object to be draggable. That is, every time that I start to drag an image there should be a call to this lambda:
grid.addDragStartListener { e -> draggedItem = e.draggedItems[0] }
Minimal reproducible example
We have a live example in the Vaadin grid documentation when the img cannot be used to drag and drop.
Steps to reproduce
Use one example like the live one with documentation. Try to drag & drop using the image. It won't work. Now use the name. It will work as expected
Environment
Vaadin version(s): 24.3.12
OS: Linux (dockerized)
Browsers
Chrome
The text was updated successfully, but these errors were encountered: