You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem here. Tried to fix it with anchors but unfortunately I am not able to fix design issues in some cases because of the auto-portal of ListboxOptions with anchor set...
This PR fixes an issue where the `ListboxOptions` component was
incorrectly marked as `inert`.
We only mark the other elements on the page as `inert` once the
`Listbox` is in a visible state. The issue is that the
`data.optionsElement` (a reference to the DOM node) was not populated
with the actual DOM node yet at the time the `useInertOthers(…)` hook
was applied.
Due to the usage of `useEvent(…)`, instead of `useCallback(…)` the
internal `useEffect(…)` hook didn't re-run because the `allowed`
function was already stable.
With this fix, the `allowed` function will change whenever its
dependencies change.
Fixes: #3464
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v2.1.3
What browser are you using?
Firefox
Reproduction URL
If I add an anchor to
ListboxOptions
it seems to start to work again, pretty unexpected for a bugfix release?Describe your issue
I still get a listbox and can seemingly click items, but they never get selected. I would guess I end up clicking stuff above it.
The text was updated successfully, but these errors were encountered: