How to make a button inside Material-UI tooltip's title

I was able to pass Material-UI’s IconButton inside Material-UI’s Tooltip title.

All the views are working properly, except I cannot press the button.

I want to add a Close button to make the tooltip close on clicking the close button, but I cannot do that. Is there a way to do this? If yes, please provide a solution to this.

2 thoughts on “How to make a button inside Material-UI tooltip's title”

  1. MUI’s Tooltip has pointer-events set to none by default, so you need to enable this. Add a class to your tooltip and then add this to the css:

      pointer-events: auto;
    
    Reply

Leave a Comment