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

PopoverPanel `focus` prop doesn't work when `transition` prop is set #3358

Closed oliwheeler closed 2 months ago

oliwheeler commented 3 months ago

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

2.1.1

What browser are you using?

Chrome

Reproduction URL

Link to repro

Describe your issue

The focus prop on the PopoverPanel component doesn't focus on the panel when the transition prop is also set to true.

RobinMalfait commented 2 months ago

This should be fixed by #3361, and will be available in the next release.

You can already try it using:

oliwheeler commented 2 months ago

Thank you!