Search code examples
angularjstwitter-bootstrapmodal-dialogtooltip

Issue in bootstrap tooltip when bootstrap modal is a on-click event


I have a icon tooptip, ng-click event on the icon opens a bootstrap Modal

When I close the modal, the tooltip stuck on screen as shown in the image link . When second time I hover over and move my mouse out from the icon, then the tooltip is getting invisible.

I tried a lot to remove the tooltip after close of modal, did anyone faced the same issue. ?


Solution

  •  $('.tooltip-target').tooltip();
    

    with this tooltip getting focus again and

    with the following you restricted the focus that will be show up only after a hover again

    $('.tooltip-target').tooltip({ trigger: 'hover' });