Tooltip does not disappear when the button is clicked

Asked

Viewed 324 times

1

The tooltip usually appears when I hover over the button, but when I click and drag the mouse outside 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>
  • Generates an executable for us to see!

  • Guy puts the rest of his code involved in the problem like CSS and JS

1 answer

0


I had a similar problem, it happens because there is a Trigger set Hover.

Put this in the code I believe will solve

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.