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 Feb 28, 2024
1 parent a81fddb commit 90e1090
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 @@ -1121,6 +1121,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();
}
}

Expand Down

0 comments on commit 90e1090

Please sign in to comment.