Skip to content

Commit

Permalink
Misc changes for the new tree- and -list api #3696
Browse files Browse the repository at this point in the history
  • Loading branch information
ashklianko committed Sep 23, 2024
1 parent dca8884 commit 14b229c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ export class SelectableListBoxWrapper<I>
}

deselect(item: I | I[], silent?: boolean): void {
if (!item || (Array.isArray(item) && item.length === 0)) {
return;
}

const items: I[] = Array.isArray(item) ? item : [item];

items.forEach((itemToDeselect: I) => {
Expand Down

0 comments on commit 14b229c

Please sign in to comment.