tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.

Home Page:https://headlessui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

oliwheeler opened this issue · comments

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.

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

You can already try it using:

  • npm install @headlessui/react@insiders.

Thank you!