I am working with a Material-UI tab component and I would like to include a tooltip feature.
The issue I am facing is that the tooltip does not disappear when I click on the tab. It should hide after clicking on the tab.
Currently, the tooltip remains visible even after I have clicked on the tab.
Is there a way to fix this behavior?
<Tabs
className="navbar-routes"
value={value}
style={{ color: 'green'}}
indicatorColor="secondary"
onChange={handleChange}
>
{
tabsData.map(({id,title,description}) => {
return(
<ToolTip description={description}>
<Tab
style={{
minWidth: 10,
fontSize: '80%',
fontWeight: 'bold',
marginLeft: '-4px',
marginRight: 4
}}
key={id}
component={Link}
to={`/${title}`}
label={`${title}`}
/>
</ToolTip>
);
}
)}
</Tabs>