tailwindlabs / headlessui

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

Ensure the `static` and `portal` props work nicely together #3152

Closed RobinMalfait closed 5 months ago

RobinMalfait commented 5 months ago

This PR fixes an issue where the static prop and the portal prop (or anchor prop which enables the portal prop by default) didn't work well together. This is because the wrapping <Portal /> component was not taking the static prop into account.

This is needed when you want to use the portal and/or anchor prop in combination with a 3rd party animation library (such as framer-motion) where the static prop is needed.

vercel[bot] commented 5 months 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 Apr 29, 2024 6:33pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 6:33pm