From 0556a813c799e72890434ec03aa8ccf2b3188ede Mon Sep 17 00:00:00 2001 From: Eunsun Mota Date: Tue, 14 Jan 2025 12:25:24 -0500 Subject: [PATCH] fix: hide bib properly upon making a selecting #78 --- components/combobox/src/auro-combobox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/combobox/src/auro-combobox.js b/components/combobox/src/auro-combobox.js index 1ef58878..7160bca0 100644 --- a/components/combobox/src/auro-combobox.js +++ b/components/combobox/src/auro-combobox.js @@ -345,9 +345,6 @@ export class AuroCombobox extends LitElement { // handle the menu event for an option selection this.menu.addEventListener('auroMenu-selectedOption', () => { - // dropdown bib should hide when making a selection - this.hideBib(); - if (this.menu.optionSelected) { if (this.optionSelected !== this.menu.optionSelected) { this.optionSelected = this.menu.optionSelected; @@ -376,6 +373,9 @@ export class AuroCombobox extends LitElement { composed: true, })); } + + // dropdown bib should hide when making a selection + this.hideBib(); }); this.menu.addEventListener('auroMenu-customEventFired', () => {