tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

Dom nodes left duplicated after destroyTooltipOnHide

Open chris-verclytte opened this issue 8 years ago • 8 comments

Is it normal that the library leave some node attached to the body even if destroyTooltipOnHide is activated. Here is a simple preview of what it looks like, the nodes' children (actually containing tooltip content) are well destroyed but the nodes themselves are left in the tree.

capture d ecran 2017-05-10 a 18 33 58

chris-verclytte avatar May 10 '17 16:05 chris-verclytte

can you provide a reproducible demo?thanks

paranoidjk avatar May 11 '17 03:05 paranoidjk

I read the code, and found that we don't remove container node after the tooltip is hidden.

benjycui avatar May 11 '17 09:05 benjycui

This will be a problem if there many tooltip on the page.

benjycui avatar May 11 '17 09:05 benjycui

@paranoidjk do you have time to fix this? It's a little complicate.

benjycui avatar May 11 '17 09:05 benjycui

A fix would indeed be very welcome. This one is a little frustrating at least.

Besides that; awesome library!

smeijer avatar Jul 07 '17 07:07 smeijer

@ioan-ungurean Sorry, pretty busy these days. Would you like PR?

paranoidjk avatar Sep 01 '17 01:09 paranoidjk

I don't suppose anyone got round to this?

pav-w avatar Sep 22 '21 15:09 pav-w