Files
headlessui/playgrounds/react
Robin Malfait 70f88f4e26 Fix hanging tests when using anchor prop (#3357)
* add test that verifies unit test hang

* bail when parsing the `maxHeight` results in `NaN`

* playground cleanup

Testing using this playground example, so cleaned it up to be more
modern using newer components, transition prop and so on.

* use CSS instead of JS

Let's make it a CSS problem instead of a JS problem. The
`round(up, <valueToRound>, <roundingInterval>)` will behave similar to a
`Math.ceil()` that we had in the JS implementation.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/round

* Remove CSS solution for now

I want to re-enable this in the future, but unfortunately for now we
can't use it because Chrome only introduced support for this in the last
2 months.

This reverts commit daac60d45ec3f02b324d0d8b18078a995e885733.

* update changelog
2024-07-03 22:37:44 +02:00
..