Skip to content

Commit

Permalink
fix(dropdown): force the the dropdown to expand when the input value …
Browse files Browse the repository at this point in the history
…changes #175
  • Loading branch information
trupti-alaskaair authored and jason-capsule42 committed May 6, 2024
1 parent 73cb44c commit 75bac5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/auro-combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,14 @@ export class AuroCombobox extends LitElement {
this.hideBib();
this.classList.remove('combobox-filled');
} else if (!this.dropdown.isPopoverVisible && this.availableOptions) {
this.showBib();
const hasFocus = this.contains(document.activeElement);

// if the focus is within the combobox, then show the bib
// this will prevent the bib from being shown while loading & presetting the value
if (hasFocus) {
this.showBib();
}

this.classList.add('combobox-filled');
}

Expand Down

0 comments on commit 75bac5a

Please sign in to comment.