Skip to content

Commit 43d6b0d

Browse files
AykutSaracAykut Saraç
and
Aykut Saraç
authored
fix(select): select check additional count event loop (#743)
Fixes select causing the window to be frozen on choosing x amount of options. This is caused by running `_checkAdditionalItemCount` within updated for each update instead of listening for selected options only. Co-authored-by: Aykut Saraç <[email protected]>
1 parent fd32b93 commit 43d6b0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/select/bl-select.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ export default class BlSelect<ValueType extends FormValue = string> extends Form
488488
this.value = null;
489489
}
490490

491-
this._checkAdditionalItemCount();
491+
if (_changedProperties.has("_selectedOptions")) {
492+
this._checkAdditionalItemCount();
493+
}
492494
}
493495

494496
/**

0 commit comments

Comments
 (0)