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

CTooltip removes the style before the hide animation completes

Open rtsoftplzen opened this issue 3 years ago • 4 comments

Hi,

CTooltip removes the style immediately when it is hidden. Before the element is removed, the tooltip flashes at the end of the body (the animation for hiding runs at the end of the body, instead of above the source element). In javascript version this is fine, the style is removed after the animation is finished.

Window 11, Microsoft Edge (116.0.1938.69)

Thank you in advance.

coreui-react-ctooltip

rtsoftplzen avatar Sep 06 '23 08:09 rtsoftplzen

@rtsoftplzen fixed in @coreui/[email protected] / @coreui/[email protected]

mrholek avatar Sep 11 '23 16:09 mrholek

@mrholek thanks for the fix.

It's better, now you can see the animation for "fade". But still after the animation is finished, style properties are removed before the element is removed from the DOM.

We have now fixed it for ourselves with .tooltip:not([style*="position"]) {display: none;}.

Have a nice day.

rtsoftplzen avatar Sep 13 '23 07:09 rtsoftplzen

Now it works as in the Vanilla JS version. We added a transition end listener, so the Popper.js instance is destroyed after the fade animation.

mrholek avatar Sep 14 '23 08:09 mrholek

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

github-actions[bot] avatar Nov 13 '23 14:11 github-actions[bot]