Skip to content

fix(app-bar-profile-button): fixed a bug where the popover could get destroyed before the animation completes #961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

DRiFTy17
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

This bug can occur if the component is destroyed before the animation of the popover is complete.

Additional information

This was found in response to clicking the profile button, and using Angular to switch routes which caused the component to be destroyed immediately, but the animation complete listener continued to run which unset the popover element reference.

@DRiFTy17 DRiFTy17 requested a review from a team as a code owner July 18, 2025 15:48
@DRiFTy17 DRiFTy17 added the patch Increment the patch version when merged label Jul 18, 2025
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 0c73011 into main Jul 24, 2025
13 checks passed
@DRiFTy17 DRiFTy17 deleted the fix-app-bar-profile-button-destroy branch July 24, 2025 13:57
Copy link
Contributor

🚀 PR was released in v3.10.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants