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
The recently added Drag Image support is limited to cases, when the component is a visible element in the viewport. The component does not appear during drag, if it's just a detached component:
Vaadin Flow's DnD can integrate some logic that add/hides the component on a page to make the API work.
A bit of hacky solution, There is no other way currently to make it work.
Describe alternatives you've considered
Document possible workarounds that can be applied in projects, but IMO that's a wrong way.
Additional contex
Vaadin 24.6 pre-release.
The text was updated successfully, but these errors were encountered:
Describe your motivation
The recently added Drag Image support is limited to cases, when the component is a visible element in the viewport. The component does not appear during drag, if it's just a detached component:
see this comment.
setDragImage
browser's API states that the element should be visible or added to a DOM, see https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage#imgelement.Describe the solution you'd like
With adding a component to a DOM and offset it like this (just an example), makes it shown as drag image.
Vaadin Flow's DnD can integrate some logic that add/hides the component on a page to make the API work.
A bit of hacky solution, There is no other way currently to make it work.
Describe alternatives you've considered
Document possible workarounds that can be applied in projects, but IMO that's a wrong way.
Additional contex
Vaadin 24.6 pre-release.
The text was updated successfully, but these errors were encountered: