Skip to content

Commit

Permalink
fix: fix select event
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Sep 13, 2022
1 parent bf906bb commit 5ce891a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/selecto/src/SelectoManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,6 @@ class Selecto extends EventEmitter<SelectoEvents> {
passedTargets,
this.continueSelect && this.continueSelectWithoutDeselect,
);

this.selectedTargets = selectedTargets;
}
/**
* When the drag, the drag event is called.
Expand Down
2 changes: 2 additions & 0 deletions packages/selecto/test/manual/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
setTimeout(() => {
document.body.insertAdjacentHTML("beforeend", `<div class="target" style="top: 300px; left: 50px; width: 50px; height: 50px">T6</div>`);
});
}).on("select", e => {
console.log(e.removed, e.added);
}).on("selectEnd", e => {
if (e.isDouble) {
console.log("dblclick");
Expand Down

0 comments on commit 5ce891a

Please sign in to comment.