tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
https://headlessui.com
MIT License
25.02k stars 1.03k forks source link

Fix crash when using `TransitionChild` inside of a `Dialog` #3329

Closed RobinMalfait closed 6 days ago

RobinMalfait commented 1 week ago

Ensure that each Dialog is always a new Transition boundary such that nested TransitionChild components are correctly handled.

If you happen to nest Dialog components in places where you shouldn't (e.g.: inside a Disclosure instead of a DisclosurePanel) then it could lead to a crash that has been fixed by this change.

Fixes: #3316 Fixes: #3322

vercel[bot] commented 1 week ago

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 Jun 26, 2024 11:42am
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:42am