Tooltip does not disappear when the button is clicked

1

The tooltip usually appears when I hover the mouse over the button, but when I click the button and drag the mouse out of the button the tooltip gets stuck.

<button type="button" class="btn btn-default fa fa-angle-left fa-2x" data-toggle="tooltip" title="Anterior" id="btnAnterior"></button>
    
asked by anonymous 06.07.2018 / 16:52

1 answer

0

I had a similar problem, this happens because it does not have a trigger hover set.

Put this in the code I believe will solve

$('[data-toggle="tooltip"]').tooltip({
    trigger : 'hover'
}) 
    
06.07.2018 / 16:57