From db3efa07f9231fe9f3c4a1bb2c51cad7866e3948 Mon Sep 17 00:00:00 2001 From: Dale Nguyen Date: Sun, 3 Sep 2023 06:05:38 +0700 Subject: [PATCH] fix: SpeedDial onBlur issue #13499 (#13589) * fix: SpeedDial onBlur issue #13499 * remove comment --- src/app/components/speeddial/speeddial.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/speeddial/speeddial.ts b/src/app/components/speeddial/speeddial.ts index 4c8f4d8c8e1..79b15f19286 100644 --- a/src/app/components/speeddial/speeddial.ts +++ b/src/app/components/speeddial/speeddial.ts @@ -29,6 +29,8 @@ import { PlusIcon } from 'primeng/icons/plus'; import { RippleModule } from 'primeng/ripple'; import { TooltipModule } from 'primeng/tooltip'; import { UniqueComponentId } from 'primeng/utils'; +import { asapScheduler } from 'rxjs'; + /** * When pressed, a floating action button can display multiple primary actions that can be performed on a page. * @group Components @@ -419,7 +421,7 @@ export class SpeedDial implements AfterViewInit, AfterContentInit, OnDestroy { onBlur(event) { this.focused = false; - this.focusedOptionIndex.set(-1); + asapScheduler.schedule(() => this.focusedOptionIndex.set(-1)); } onArrowUp(event) {