Material-ui: Tooltip is not working for user defined component

Created on 5 Jul 2018  路  2Comments  路  Source: mui-org/material-ui


[鉁揮 This is a v1.x issue (v0.x is no longer maintained).
[鉁揮 I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

display tooltip on user defined components

Steps to Reproduce (for bugs)

https://codesandbox.io/s/o5n60z7p9

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | latest |
| React | 16.3.2 |
| browser | all |

Tooltip question

Most helpful comment

@Anugraha123 Following the composition documentation section, you need to spread the properties in your custom component. The tooltip needs to inject some event listeners to the underlying element. https://codesandbox.io/s/mmo1wkm3jx

All 2 comments

@Anugraha123 Following the composition documentation section, you need to spread the properties in your custom component. The tooltip needs to inject some event listeners to the underlying element. https://codesandbox.io/s/mmo1wkm3jx

@oliviertassinari Thanks for this information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

revskill10 picture revskill10  路  3Comments

rbozan picture rbozan  路  3Comments

FranBran picture FranBran  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments

sys13 picture sys13  路  3Comments