Skip to content

Commit

Permalink
Fixed #14701 - Dropdown | removing a letter from filter that comes af…
Browse files Browse the repository at this point in the history
…ter a whitespace ' ' removes the whitespace
  • Loading branch information
mehmetcetin01140 committed Feb 6, 2024
1 parent 20b5c1c commit ce6f1f7
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 @@ -1762,7 +1762,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
}

onFilterInputChange(event: Event | any): void {
let value: string = (event.target as HTMLInputElement).value?.trim();
let value: string = (event.target as HTMLInputElement).value
this._filterValue.set(value);
this.focusedOptionIndex.set(-1);
this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
Expand Down

0 comments on commit ce6f1f7

Please sign in to comment.