From e795f83d58e29d52914128ab12144379b986469f Mon Sep 17 00:00:00 2001 From: Md Ashik Date: Tue, 29 Aug 2023 15:56:32 +0600 Subject: [PATCH] fix: #13559 || DropDown filter search not trimming text and search showing empty #13559 --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 1c79b032c3a..203607159b5 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1483,7 +1483,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } onFilterInputChange(event: Event | any): void { - let inputValue = (event.target as HTMLInputElement).value; + let inputValue: string = (event.target as HTMLInputElement).value?.trim(); if (inputValue && inputValue.length) { this._filterValue = inputValue; this.activateFilter();