Dropzone indicator doesn't disappear when dragging files or HTML from outside the window and pressing Escape #26013
Labels
[Feature] Drag and Drop
Drag and drop functionality when working with blocks
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
The blue dropzone indicator doesn't disappear when dragging files or HTML from outside the window and pressing Escape
#25986 adds handling for cancelled drag events using the
dragend
event. Unfortunatelydragend
only fires when the source of the drag originates from inside the document, which mostly affects files since they're dragged from outside the document (in most cases I can think of).keyup
also can't be used as the window isn't actively focused when dragging from outside, sokeyup
doesn't fire.Potentially
dragleave
is an option, though this seems a little complicated to implement.To reproduce
Files
HTML
Expected behavior
The drag event should be cancelled and the drop indicators shouldn't be displayed.
The text was updated successfully, but these errors were encountered: