Files
headlessui/packages
Jordan Pittman 6444e01bc1 Fix Portal SSR hydration mismatches (#2700)
* Register portal based on element presence in the DOM

This always coincides with `onMounted` currently but that’s about to change

* Mount element lazily for portals

This prevent’s SSR hydration issues and matches the behavior of React’s `<Portal>` element

* Fix portal tests

* Update comment

* Update changelog
2023-08-23 14:38:53 -04:00
..