Skip to content

Commit 7fad869

Browse files
Copilotkdinev
andcommitted
Optimize disableClear check order for better performance
Co-authored-by: kdinev <[email protected]>
1 parent a110973 commit 7fad869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/combo/combo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ export default class IgcComboComponent<
892892
slot="suffix"
893893
part="clear-icon"
894894
@click=${this.handleClearIconClick}
895-
?hidden=${this._selection.isEmpty || this.disableClear}
895+
?hidden=${this.disableClear || this._selection.isEmpty}
896896
>
897897
<slot name="clear-icon">
898898
<igc-icon

0 commit comments

Comments
 (0)