Skip to content

Commit

Permalink
fix: #13559 || DropDown filter search not trimming text and search sh…
Browse files Browse the repository at this point in the history
…owing empty #13559
  • Loading branch information
ashikjs committed Aug 29, 2023
1 parent ac736bc commit e795f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e795f83

Please sign in to comment.