vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.77k stars 729 forks source link

HTML5 drag'n'drop doesn't work with Images #12604

Closed Ansku closed 4 months ago

Ansku commented 5 months ago

DropTargetExtensionConnector blocks the drop if the event.dataTransfer contains a type Files. The purpose of that is to keep the listener from consuming the event if an actual file is dragged onto the drop target, so that the same area can optionally be used as a FileDropTarget too. However, the current check accidentally also blocks Image components, as well as some (but not all) other components that contain an <img> tag, like a Label that has an icon set to the caption (but not a Button with the same icon set).

See also https://support.vaadin.com/browse/VS-5045 (internal access only)