From 6c9bf783d2273366486f48b00bb4833531a2e0ec Mon Sep 17 00:00:00 2001 From: Erbil Nas Date: Thu, 28 Dec 2023 10:11:19 +0300 Subject: [PATCH] fix(select): fix lowercase convert for search text --- src/components/select/bl-select.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/select/bl-select.ts b/src/components/select/bl-select.ts index 6c21fa5f..8738fc78 100644 --- a/src/components/select/bl-select.ts +++ b/src/components/select/bl-select.ts @@ -586,12 +586,12 @@ export default class BlSelect 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; });