Files
headlessui/packages
Robin Malfait ff41b27d27 Fix initial anchor="selection" state (#3324)
* compute `selectedOptionIndex` when using `anchor="selection"`

Instead of relying on the DOM directly, we can compute the
`selectedOptionIndex` and rely on the data directly.

We will also freeze the value while closing to prevent UI changes.

* update changelog
2024-06-25 15:16:33 +02:00
..
2024-06-20 16:01:23 -04:00