Skip to content

Commit

Permalink
Fix events not being triggered on last element deselection
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-algms authored and simonwep committed Dec 31, 2024
1 parent 755876e commit 8c562b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/vanilla/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,6 @@ export default class SelectionArea extends EventTarget<SelectionEvents> {
stored.includes(el)
);

if (!elements.length) {
return;
}

this._selection.stored = stored.filter(el => !elements.includes(el));
this._selection.selected = selected.filter(el => !elements.includes(el));
this._selection.changed.added = [];
Expand Down

0 comments on commit 8c562b2

Please sign in to comment.