Skip to content
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

fix: fix open/close event emitting of initially open components #11306

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Jan 15, 2025

Related Issue: #10703

Summary

Fixes an issue where initially open components relied on fallback logic due to the starting animation/transition event having already fired before onToggleOpenCloseComponent was invoked.

Notes

  • uses Web Animations API for better transition/animation handling
  • updates components to call onToggleOpenCloseComponent only when the transition-triggering prop is updated
  • removes now obsolete utils for spec tests
  • consolidates animation + transition spec tests
  • adds promises spec test helper
  • updates util doc

* use Web Animations API for better transition/animation handling
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Jan 15, 2025
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Jan 15, 2025
@jcfranco jcfranco changed the title fix: fix eventing of initially open components fix: fix open/close event emitting of initially open components Jan 15, 2025
@jcfranco jcfranco requested review from driskull and Elijbet January 15, 2025 17:08
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👍 Nice cleanup and refactor. 💯

@jcfranco jcfranco merged commit cb1d0e9 into dev Jan 15, 2025
13 checks passed
@jcfranco jcfranco deleted the jcfranco/10703-fix-initially-open-close-event-emitting branch January 15, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants