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 10, 2024
1 parent b66e7e8 commit 3f0a06a
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 3f0a06a

Please sign in to comment.