We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Tooltip Content component crashes with asChild.
asChild
It crashes when I render anything with <TooltipPrimitive.Content asChild />.
<TooltipPrimitive.Content asChild />
It does not crash.
Can't get the tempalte to work
Do not render <VisuallyHiddenContentContextProvider /> inside of a component that can be asChilded
<VisuallyHiddenContentContextProvider />
The text was updated successfully, but these errors were encountered:
Here is reproducible example:
Slightly modified (switched to react@rc and added asChild prop) official example for Tooltip.
CodeSandbox (hover over button and then see console)
Sorry, something went wrong.
Same with Trigger
➕ also hitting this issue.
No branches or pull requests
Bug report
The Tooltip Content component crashes with
asChild
.Current Behavior
It crashes when I render anything with
<TooltipPrimitive.Content asChild />
.Expected behavior
It does not crash.
Reproducible example
Can't get the tempalte to work
Suggested solution
Do not render
<VisuallyHiddenContentContextProvider />
inside of a component that can beasChild
edYour environment
The text was updated successfully, but these errors were encountered: