Skip to content

Commit

Permalink
fix: SpeedDial onBlur issue #13499 (#13589)
Browse files Browse the repository at this point in the history
* fix: SpeedDial onBlur issue #13499

* remove comment
  • Loading branch information
Dale Nguyen authored Sep 2, 2023
1 parent 9489286 commit db3efa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/speeddial/speeddial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

1 comment on commit db3efa0

@vercel
Copy link

@vercel vercel bot commented on db3efa0 Sep 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.