Skip to content

Commit

Permalink
perf: simplify the default slot query selector #205
Browse files Browse the repository at this point in the history
  • Loading branch information
rmenner committed Nov 20, 2024
1 parent a81a9f2 commit dcab4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auro-combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -740,7 +740,7 @@ export class AuroCombobox extends LitElement {
<slot name="label" slot="label"></slot>
</${this.inputTag}>
<div class="menuWrapper">
<slot id="defaultSlot"></slot>
<slot></slot>
</div>
<span slot="helpText">
${this.auroInputHelpText
Expand Down

0 comments on commit dcab4e0

Please sign in to comment.