Skip to content

Commit

Permalink
Fix selection behavior (#45589)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Mar 26, 2018
1 parent 0fd46e9 commit a82ae79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export class QuickInputCheckboxList {
selected: !!item.selected
}));
this.list.splice(0, this.list.length, this.elements);
this.list.setSelection([]);
this.list.focusFirst();
}

Expand Down Expand Up @@ -230,8 +231,9 @@ export class QuickInputCheckboxList {
});

this.list.splice(0, this.list.length, this.elements.filter(element => !element.hidden));
this.list.layout();
this.list.setSelection([]);
this.list.focusFirst();
this.list.layout();
}

toggleCheckbox() {
Expand Down

0 comments on commit a82ae79

Please sign in to comment.