Skip to content

Commit

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

select(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((itemToSelect: I) => {
Expand Down

0 comments on commit 756f54f

Please sign in to comment.