Skip to content

Commit

Permalink
fix(select): fix lowercase convert for search text
Browse files Browse the repository at this point in the history
  • Loading branch information
Erbil Nas committed Dec 28, 2023
1 parent 2fc9859 commit 6c9bf78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/select/bl-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,12 @@ export default class BlSelect<ValueType extends FormValue = string> extends Form
private _handleSearchOptions(e: InputEvent): void {
if (!this.searchBar) return;

this._searchText = (e.target as HTMLInputElement).value.toLowerCase();
this._searchText = (e.target as HTMLInputElement).value;

this._handleSearchEvent();

this._connectedOptions.forEach(option => {
const isVisible = option.textContent?.toLowerCase().includes(this._searchText);
const isVisible = option.textContent?.toLowerCase().includes(this._searchText.toLowerCase());

option.hidden = !isVisible;
});
Expand Down

0 comments on commit 6c9bf78

Please sign in to comment.