From dcab4e0e801635ba4a244ec0b3420d4b014171fa Mon Sep 17 00:00:00 2001 From: rmenner Date: Fri, 15 Nov 2024 19:12:18 -0500 Subject: [PATCH] perf: simplify the default slot query selector #205 --- src/auro-combobox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auro-combobox.js b/src/auro-combobox.js index 0cd0297..8879cc8 100644 --- a/src/auro-combobox.js +++ b/src/auro-combobox.js @@ -694,7 +694,7 @@ export class AuroCombobox extends LitElement { * @returns {void} */ observeSlotChanges() { - const [slotContent] = this.shadowRoot.querySelector("#defaultSlot").assignedElements(); + const [slotContent] = this.shadowRoot.querySelector(".menuWrapper slot").assignedElements(); if (slotContent) { this.observer.observe(slotContent, { @@ -740,7 +740,7 @@ export class AuroCombobox extends LitElement { ${this.auroInputHelpText