Skip to content

Commit

Permalink
fix(combo-box): incorrect popup logic in some scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
goremikins authored Aug 16, 2022
1 parent 155cbde commit 159eb53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/elements/src/combo-box/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,10 @@ export class ComboBox<T extends DataItem = ItemData> extends FormFieldElement {
this.notifyPropertyChange('value', inputText);
}

this.setOpened(true);
// The popup can only be opened if input element has focus
if (this.shadowRoot && this.shadowRoot.activeElement === this.inputElement) {
this.setOpened(true);
}
}

/**
Expand Down

0 comments on commit 159eb53

Please sign in to comment.