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 Oct 23, 2024
1 parent b62487b commit 17042ce
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 17042ce

Please sign in to comment.