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

Deprecate the entered prop on the Transition component #3089

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

RobinMalfait
Copy link
Member

This PR marks the entered prop on the Transition component as deprecated. This prop was used to ensure that some classes stay after the transition finishes.

However, it makes more sense to use the enterTo and leaveTo classes to achieve the same effect. This was already implemented, so there is no need for the entered prop at all. We keep it for backwards compatibility reasons, but marking it as deprecated such that you can drop it from your own codebase if you want.

Quick summary:

  • We keep the enterTo classes once the enter transition finishes
  • We keep the leaveTo classes once the leave transition finishes

- We keep the `enterTo` classes once the `enter` transition finishes
- We keep the `leaveTo` classes once the `leave` transition finishes
Copy link

vercel bot commented Apr 9, 2024

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

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 1:48pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 1:48pm

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.

2 participants