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 `Element` is available before polyfilling #3493

Closed RobinMalfait closed 4 days ago

RobinMalfait commented 4 days ago

In some environments Element won't be available, which is needed for the Element.prototype.getAnimations polyfill. If Element is not available at all, it means that we are not in a browser so we don't need the polyfill.

Fixes: #3490

vercel[bot] commented 4 days 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 Sep 26, 2024 10:10pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 10:10pm