Skip to content

Commit

Permalink
fix: use capture for dragLeave (#20291) (#20317)
Browse files Browse the repository at this point in the history
Co-authored-by: Teppo Kurki <[email protected]>
  • Loading branch information
vaadin-bot and tepi authored Oct 23, 2024
1 parent 7198204 commit a3000bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ window.Vaadin.Flow.dndConnector = {
if (element['__active']) {
element.addEventListener('dragenter', this.__ondragenterListener, false);
element.addEventListener('dragover', this.__ondragoverListener, false);
element.addEventListener('dragleave', this.__ondragleaveListener, false);
element.addEventListener('dragleave', this.__ondragleaveListener, true);
element.addEventListener('drop', this.__ondropListener, false);
} else {
element.removeEventListener('dragenter', this.__ondragenterListener, false);
Expand Down

0 comments on commit a3000bd

Please sign in to comment.