react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

Change data-type for opened tooltip

Open fakhamatia opened this issue 1 year ago • 2 comments

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>;

Peek 2022-07-21 16-59

"react-tooltip": "^4.2.21" "react": "17.0.2"

fakhamatia avatar Jul 21 '22 12:07 fakhamatia

Try calling ReactTooltip.rebuild(); after

WilliamWelsh avatar Sep 26 '22 20:09 WilliamWelsh

Try calling ReactTooltip.rebuild(); after

Not working

fakhamatia avatar Oct 10 '22 10:10 fakhamatia

Closing all v4 issues due to V5 released.

If necessary, please open a new issue using V5, thanks!

danielbarion avatar Dec 07 '22 12:12 danielbarion