From 03002b2f90877505b463e0cf407f2fff8cf437ae Mon Sep 17 00:00:00 2001 From: andreaslampe <70583111+anlampe@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:17:22 +0100 Subject: [PATCH] Fix #14323: Dropdown fix regression - options overlay is closed before it handles the click event --- 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 2f5bbc74f22..1ff2b4c67fc 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1057,7 +1057,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV const value = this.getOptionValue(option); this.updateModel(value, event); this.focusedOptionIndex.set(this.findSelectedOptionIndex()); - isHide && this.hide(true); + isHide && setTimeout(() => this.hide(true), 1); preventChange === false && this.onChange.emit({ originalEvent: event, value: value }); }