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
This improves the HTML DOM tree if this happens to be used in let's say
a `p` tag where `div` elements are not allowed. The `Hidden` element is
hidden so it doesn't really matter what the underlying element is.
Fixes: #3319
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
2.1.0
What browser are you using?
Chrome
Reproduction URL
See the sandbox
Describe your issue
When using
Popover
nested inside ap
-element, the following warning is logged in the console:As you can see in the sandbox, all of the popover components use
as="span"
, but there is an emptydiv
rendered within thePopover
causing this issue:Is this empty
div
-element critical for the popover to work, or is there a way to opt out from this element?The text was updated successfully, but these errors were encountered: