From 90e10902dee1ba04d850c1cc4c126179c14f75d9 Mon Sep 17 00:00:00 2001 From: Mahdi Lazraq Date: Wed, 10 Jan 2024 18:47:10 +0100 Subject: [PATCH] fix: selecting dropdown option should reset filter This PR solves #14503. --- src/app/components/dropdown/dropdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 86be44b379a..9f91f82e7ee 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -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(); } }