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 34d9f0e commit ae48360
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class SelectableListBoxWrapper<I>

protected handleUserToggleAction(item: I): void {
const itemId = this.listBox.getIdOfItem(item);
const actualItem = this.listBox.getItem(itemId); // making sure we work with actual list item value
const actualItem = this.listBox.getItem(itemId) || item; // making sure we work with actual list item value

if (!this.isMultiSelect() || this.selectionMode === SelectionMode.HIGHLIGHT) { // unselect all other items
this.getCurrentlySelectedItems().filter((selectedItem) => this.listBox.getIdOfItem(selectedItem) !== itemId).forEach(
Expand Down

0 comments on commit ae48360

Please sign in to comment.