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 incorrect transitionend/transitioncancel events for the Transition component #1537

Merged
merged 2 commits into from
May 31, 2022

Conversation

RobinMalfait
Copy link
Member

Due to bubbling, the Transition component also "finished" when you had
children that uses transition-colors for example.

This commit ensures that we only care about transition events related to
the actual DOM node that we defined the transitions on...

Fixes: #1517

@vercel
Copy link

vercel bot commented May 31, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview May 31, 2022 at 2:50PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview May 31, 2022 at 2:50PM (UTC)

Due to bubbling, the `Transition` component also "finished" when you had
children that uses `transition-colors` for example.

This commit ensures that we only care about transition events related to
the actual DOM node that we defined the transitions on...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Closing dialog from children button/onClick randomly freezes the app
1 participant