Tooltip is not triggered when child is component.
When child of RcTooltip is some component, then tooltip is not triggered. BTW, Ant Design's Tooltip, using RcTooltip too, having the same problem.
CodeSandbox link to reproduce: https://codesandbox.io/s/still-browser-hwdgm
Hi. @OurMajesty you should use all props from child component. I've fixed your example. https://codesandbox.io/s/blazing-meadow-xbbi1?file=/index.js
@klamath I don't see any differences in your example, did you forget to save changes?
Yeah )
function Comp(props) {
return <span {...props}>{props.children}</span>;
}
So there is onMouseEnter and onMouseLeave props, which should be forwarded to inner element.
I wonder, should this be mentioned in docs.
There is other events as well. Docs link
Oh, I see, how I missed it.