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 actually works, but errors are printed in console:
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.
in div (created by Portal)
in Portal (created by TooltipPopup)
in TooltipPopup (created by Tooltip)
in Tooltip (at App.js:13)
in p (at App.js:12)
in div (at App.js:9)
in App (at src/index.js:7)
I see the issue with DOM nesting of p and div tags, but I'd think that my use case – wrapping a button with Tooltip – is pretty intuitive, and it shouldn't cause errors/warnings.
🐛 Bug report
Current Behavior
I've got this pretty straight forward code:
This actually works, but errors are printed in console:
I see the issue with DOM nesting of
p
anddiv
tags, but I'd think that my use case – wrapping abutton
withTooltip
– is pretty intuitive, and it shouldn't cause errors/warnings.Expected behavior
No errors are printed.
Reproducible example
https://codesandbox.io/s/trusting-bhabha-lfrsm
Suggested solution(s)
Additional context
Your environment
The text was updated successfully, but these errors were encountered: