-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tooltip+popover destroy method does not remove the element from the DOM #10740
Comments
It's confirmed on FF 24. |
Also applies to popovers since they're an extension of tooltips. |
… element from the DOM added a remove() on the tooltip dom element in destroy method
… element from the DOM tweaked the patch to avoid creating a tooltip if never shown before as @jochenberger suggested
The pull request from @jooleeunc should solve this issue, but until it's accepted I needed a workaround. Here it is: // Fix for bootstrap tooltips, sometimes they are left in the DOM when they shouldn't be.
$('body').on('hidden.bs.tooltip', function() {
var tooltips = $('.tooltip').not('.in');
if (tooltips) {
tooltips.remove();
}
}); |
this is the official fix for this issue 1fc08c1 |
thanks for reporting! ❤️ |
i didn't realize that i downloaded the latest version more than 1 month ago |
@onigetoc You do have a choice. The bug has been fixed in |
Bug is active in 3.1.1. |
@sirNemanjapro Please open a new issue that includes a JS Fiddle (or similar) demonstrating that the problem still exists. |
@cvrebert I have opened a new issue, but I dont really have an example for you at this point. The problem is active, I changed all the files that could influence the tooltip not to be removed but it still didnt help. |
I have this example where the tooltip seems not to be destroyed: http://jsfiddle.net/e6247y9c/ What do I have to do to fix this? //EDIT: probably I found a solution, could it be? http://jsfiddle.net/e6247y9c/2/ |
i searched for an already opened issue but did not found any that was reporting this exact problem.
I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.
Any idea ?
Fiddle : http://jsfiddle.net/52VtD/59/
click on the button to trigger the tooltip destroy method
The text was updated successfully, but these errors were encountered: