Replies: 1 comment
-
Hey @svale, I've found that it actually seems to have been introduced in version 1.7.15. The version before, 1.7.14, works fine without these hidden elements appearing everywhere. Maybe it's this line in #2492: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the latest versions of Headless UI there is a hidden
div
injected into all instances of the Popover component. I think perhaps it is a change introduced in #2634 with theMainTreeNode
:In our Next application, this introduced a lot of DOM nesting issues as we are attaching Popover to text paragraphs (
<p / >
) and the rendered DOM-structure looks like this (simplified):Specifically we are seeing
and
And in turn a set of hydration errors
Does anyone know of a workaround or if it is possible ta pass another tag (e.g.
<span>
) to the component that is inherited by the hidden element?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions