atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.97k stars 520 forks source link

It's undocumented whether tippies should be destroyed when no longer needed #1144

Open x-yuri opened 10 months ago

x-yuri commented 10 months ago

Bug description

Let's say you added a tippy to an element, but then you destroyed the latter (e.g. el.parentNode.innerHTML = ''). Should the tippy be destroyed manually as well (el._tippy.destroy())? If so, I think it's important to mention it in the docs since I'd expect that many will not do any clean up. If it isn't so, I think it's also important to mention it to appease the paranoid types :)