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 committed Nov 22, 2024
1 parent bee9f2f commit b1fde7e
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 @@ -802,10 +802,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 b1fde7e

Please sign in to comment.