Skip to content

Commit 26bdc0a

Browse files
Don't handle events when quick pick is not visible (microsoft#223419)
Fixes microsoft#223363
1 parent ca3d23f commit 26bdc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/quickinput/browser/quickInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ export class QuickPick<T extends IQuickPickItem> extends QuickInput implements I
916916
}
917917
}));
918918
this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(checkedItems => {
919-
if (!this.canSelectMany) {
919+
if (!this.canSelectMany || !this.visible) {
920920
return;
921921
}
922922
if (this.selectedItemsToConfirm !== this._selectedItems && equals(checkedItems, this._selectedItems, (a, b) => a === b)) {

0 commit comments

Comments
 (0)