react-component / tooltip

React Tooltip
http://react-component.github.io/tooltip/
MIT License
928 stars 191 forks source link

Support tooltip on React Fragments #119

Open AlonBe opened 6 years ago

AlonBe commented 6 years ago

The following code doesn't popup the tooltip: `<Tooltip overlay={this.getOverlay} placement={'bottomLeft'}>

<React.Fragment>
     { anyInnerChild }
</React.Fragment>

`

But when working with "native" components which are not React Fragments - it works

burtek commented 6 years ago

As per docs,

Tooltip requires child node accepts onMouseEnter, onMouseLeave, onFocus, onClick event.

That's why React.Fragment does not work