From 5ce891a278f9156dd62952767862545cf2f696c2 Mon Sep 17 00:00:00 2001 From: Daybrush Date: Tue, 13 Sep 2022 23:16:42 +0900 Subject: [PATCH] fix: fix select event --- packages/selecto/src/SelectoManager.tsx | 2 -- packages/selecto/test/manual/index.html | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/selecto/src/SelectoManager.tsx b/packages/selecto/src/SelectoManager.tsx index 05cee20..38e20d2 100644 --- a/packages/selecto/src/SelectoManager.tsx +++ b/packages/selecto/src/SelectoManager.tsx @@ -992,8 +992,6 @@ class Selecto extends EventEmitter { passedTargets, this.continueSelect && this.continueSelectWithoutDeselect, ); - - this.selectedTargets = selectedTargets; } /** * When the drag, the drag event is called. diff --git a/packages/selecto/test/manual/index.html b/packages/selecto/test/manual/index.html index cd63d5c..24c6dd3 100644 --- a/packages/selecto/test/manual/index.html +++ b/packages/selecto/test/manual/index.html @@ -80,6 +80,8 @@ setTimeout(() => { document.body.insertAdjacentHTML("beforeend", `
T6
`); }); +}).on("select", e => { + console.log(e.removed, e.added); }).on("selectEnd", e => { if (e.isDouble) { console.log("dblclick");