When I am dynamically removing an element that has a bootstrap tooltip and the cursor is still hover, The tooltip stay on screen even if we move the cursor.
I tried to hide the tooltips before I remove the element, but it seems that it doesn't work.
function hidelm(){
$("#nav").html("");
}
$('[data-toggle="tooltip"]').tooltip();
setTimeout(function(){hidelm();},5000);
<div id="nav">
<div data-toggle="tooltip">some content</div>
</div>
Default behaviour is on focus and hover. Disable like this:
$('[data-toggle="tooltip"]').tooltip({ trigger : 'hover' });