Skip to content

Commit

Permalink
fix: enable autocomplete behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Jul 4, 2024
1 parent 41e047f commit 89538b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/option/option/option-base-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export abstract class SbbOptionBaseElement extends SbbDisabledMixin(

protected handleHighlightState(): void {
const slotNodes = Array.from(this.childNodes ?? []).filter(
(n) => !(n instanceof Element) || n.slot !== 'icon',
(n) => n.nodeType !== Node.COMMENT_NODE && (!(n instanceof Element) || n.slot !== 'icon'),
);
const labelNodes = slotNodes.filter((el) => el.nodeType === Node.TEXT_NODE) as Text[];

Expand Down

0 comments on commit 89538b1

Please sign in to comment.