-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
[Components] Tooltip throws error when child is a component #43129
Labels
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Comments
skorasaurus
added
[Package] Components
/packages/components
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Bug
An existing feature does not function as intended
labels
Aug 11, 2022
I'm also running into this same issue |
talldan
removed
the
Needs Technical Feedback
Needs testing from a developer perspective.
label
Apr 13, 2023
I guess this happens because
That's my technical feedback. |
I assume that's a neccesary requirement to prevent actually wrapping the element with extra html? |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
When using the
<Tooltip>
component with an<Icon>
as its only child is rendered it throws an error for passing ref to the component child.Wrapping the
<Icon>
with a simple<span>
resolves the error.Even with the error it still renders properly and continue working from what I can tell.
Step-by-step reproduction instructions
Add
<span>
to resolve it.Screenshots, screen recording, code snippet
Environment info
wp-env start --update
, withgutenberg
latest (not trunk) installed.Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: