Bug description:
In React, the Float component always unmounts the panels (Popover.Panel, Listbox.Panel) even if we pass the prop unmounted={false} on Popover.Panel or Listbox.Panel. For example, when using the Popover with form elements, we need those panels to be hidden, not unmounted, otherwise they will not be collected with formData on submit.
To reproduce:
Head over to the Popover example and put unmount={false} on Popover.Panel
(<Popover.Panel className="w-[240px] h-[70px] bg-white border border-gray-200 rounded-md shadow-lg focus:outline-none" unmount={false}>)
Expected behavior
When we pass the prop unmount={false}, the panel should not be unmounted if not showing, it should only be hidden.
Bug description: In React, the Float component always unmounts the panels (
Popover.Panel
,Listbox.Panel
) even if we pass the propunmounted={false}
onPopover.Panel
orListbox.Panel
. For example, when using the Popover with form elements, we need those panels to be hidden, not unmounted, otherwise they will not be collected with formData on submit.To reproduce: Head over to the Popover example and put
unmount={false}
on Popover.Panel (<Popover.Panel className="w-[240px] h-[70px] bg-white border border-gray-200 rounded-md shadow-lg focus:outline-none" unmount={false}>
)Expected behavior When we pass the prop
unmount={false}
, the panel should not be unmounted if not showing, it should only be hidden.PS: it works as expected in Vue examples though.