Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/includes/vscode-select/vscode-select-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ export class VscodeSelectBase extends VscElement {

if (changedProperties.has('open') && this._firstUpdateCompleted) {
if (this.open) {
this._dropdownEl.showPopover();
if (this.isConnected) {
this._dropdownEl.showPopover();
}

const {x, y} = this.getBoundingClientRect();
this._prevXPos = x;
Expand Down Expand Up @@ -566,8 +568,13 @@ export class VscodeSelectBase extends VscElement {
this.focused = true;
};

private _onComponentBlur = () => {
protected _onComponentBlur = () => {
this._toggleComboboxDropdown();
this.focused = false;

if (this._opts.multiSelect) {
this._opts.filterPattern = '';
}
};

protected _onSlotChange(): void {
Expand Down
1 change: 0 additions & 1 deletion src/vscode-multi-select/vscode-multi-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ export class VscodeMultiSelect

protected override _onComboboxInputBlur(): void {
super._onComboboxInputBlur();
this._opts.filterPattern = '';
}
//#endregion

Expand Down
Loading