From 22a09eb7488aa62bb9c9a37ed137aa57e160b11c Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Thu, 9 Jan 2025 13:49:13 +0100 Subject: [PATCH] Revert "fix: use capture for dragLeave (#20291)" (#20822) (#20826) This reverts commit 17042cebdc0006931b5b835ca6227ba56ee6f946. Co-authored-by: Teppo Kurki --- .../main/resources/META-INF/resources/frontend/dndConnector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow-dnd/src/main/resources/META-INF/resources/frontend/dndConnector.js b/flow-dnd/src/main/resources/META-INF/resources/frontend/dndConnector.js index 117b7489b7a..7dcb97512bf 100644 --- a/flow-dnd/src/main/resources/META-INF/resources/frontend/dndConnector.js +++ b/flow-dnd/src/main/resources/META-INF/resources/frontend/dndConnector.js @@ -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, true); + element.addEventListener('dragleave', this.__ondragleaveListener, false); element.addEventListener('drop', this.__ondropListener, false); } else { element.removeEventListener('dragenter', this.__ondragenterListener, false);