-
-
Notifications
You must be signed in to change notification settings - Fork 47.8k
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
Popover and tooltip are not displayed for custom components #15909
Labels
❓FAQ
issues would be discussed a lot
Comments
Check https://codesandbox.io/s/sweet-bessie-t9wr74?file=/src/index.js - const Item = ({ text }) => {
- return <span>text</span>;
+ const Item = ({ text, ...props }) => {
+ return <span {...props}>text</span>;
} You should pass props to children element. See #15528 (comment) |
This was referenced May 8, 2019
Closed
1 task
This comment was marked as resolved.
This comment was marked as resolved.
1 task
One workaround is to wrap your custom element with HTML tag <Popover content={}>
<div className="inline-flex"><CustomComponent/></div>
</Popover> The wrapper class could be |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
Steps to reproduce
Create a custom component and use it in a popover or tooltip.
What is expected?
Popover/tooltip is shown when hovering over the element
What is actually happening?
Popover/tooltip is not shown
Wrapping the component inside a
The text was updated successfully, but these errors were encountered: