react-tooltip
react-tooltip copied to clipboard
Change data-type for opened tooltip
I want change data-type
dynamic for opened tooltip.
I can change Icon with this way but for tooltip not work
I must re-hover to see change
<IconButton
data-tip={darkMode ? "light" : "dark"}
data-place="right"
data-type={darkMode ? "light" : "dark"}
size="small"
disableRipple
color="inherit"
sx={navbarIconButton}
onClick={() => {
handleDarkMode();
}}
>
<Icon sx={iconsStyle}>{darkMode ? "light_mode" : "dark_mode"}</Icon>
</IconButton>;
"react-tooltip": "^4.2.21" "react": "17.0.2"
Try calling ReactTooltip.rebuild();
after
Try calling
ReactTooltip.rebuild();
after
Not working
Closing all v4 issues due to V5 released.
If necessary, please open a new issue using V5, thanks!