trigger icon indicating copy to clipboard operation
trigger copied to clipboard

destroyPopupOnHide doesn't remove container

Open akashkamboj opened this issue 7 years ago • 2 comments

I have a website where I am using Ant Design a lot and there are a few pages where so many popups and tooltips are used. Some of them are static text, some are dynamic. So I am using destroyTooltipOnHide and similar methods. But It seems that even after using destroyTooltipOnHide doesn't remove the entire content. Because rc-trigger is creating containers on every item and they are not destroyed at all. So it's leaving a lot of these

<div style="position: absolute; top: 0px; left: 0px; width: 100%;"><div></div></div>

even after destroyPopupOnHide. There should be a way to pass either the container manually or it should destroy these containers as well.

akashkamboj avatar Dec 12 '18 08:12 akashkamboj

Hey @akashkamboj I'm having this exactly same problem in a project from my company. After realize that u are having same problem than us and without answer we chose to change this component.

higor-correa avatar Oct 16 '19 18:10 higor-correa

I also just ran into this problem. As a workaround I used autoDestroy instead, which works for me. Not sure where the exact difference to destroyPopupOnHide is supposed to be, though.

philippotto avatar Oct 21 '21 11:10 philippotto