Skip to content

Commit

Permalink
fix: selecting dropdown option should reset filter
Browse files Browse the repository at this point in the history
This PR solves primefaces#14503.
  • Loading branch information
mlz11 committed Jan 10, 2024
1 parent 8c75525 commit 29f487f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
this.focusedOptionIndex.set(this.findSelectedOptionIndex());
isHide && setTimeout(() => this.hide(true), 1);
preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
this.resetFilter();
}

onOptionMouseEnter(event, index) {
Expand Down

0 comments on commit 29f487f

Please sign in to comment.