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

Clicking on a Switch inside of a PopoverPanel closes the Popover #3188

Closed barrelltech closed 4 months ago

barrelltech commented 4 months ago

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

2.0.0-alpha.4

What browser are you using?

Arc & Safari

Reproduction URL

I cannot create one at this time, I just would like to report the bug so you're aware of it. I've have an old switch component I can use so it's nothing urgent.

Describe your issue

I upgraded to version 2, and I have some settings rendered within a form. If I use the Switch component inside of my PopoverPanel, it closes the Popover

barrelltech commented 4 months ago

Went to make a screen recording and it started working, must be ghosts in my machine 👻 closing for now, client error!