Skip to content

Commit

Permalink
fix: use capture for dragLeave (#20291)
Browse files Browse the repository at this point in the history
  • Loading branch information
tepi authored and vaadin-bot committed Oct 23, 2024
1 parent 2357309 commit 931fe78
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 931fe78

Please sign in to comment.