From 8893a65cf12e9abfcca04dfe0693f5b90ad2faea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:53:55 +0300 Subject: [PATCH] Fixed #14811 - Dropdown | Dropdown no longer closes when clicking the currently selected option --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 64a525a0cae..27a02ee16f8 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1111,9 +1111,9 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV const value = this.getOptionValue(option); this.updateModel(value, event); this.focusedOptionIndex.set(this.findSelectedOptionIndex()); - isHide && setTimeout(() => this.hide(true), 1); preventChange === false && this.onChange.emit({ originalEvent: event, value: value }); } + isHide && setTimeout(() => this.hide(true), 1); } onOptionMouseEnter(event, index) {