Bootstrap's tooltip doesn't disappear after button click & mouseleave

前端 未结 22 915
感情败类
感情败类 2020-12-07 16:24

I have a problem with bootstrap\'s tooltip : When I click on a button, tooltip stays even if is the cursor is outside of the button. I have looked into the manual - Bootstra

22条回答
  •  一整个雨季
    2020-12-07 16:56

    I know over a year old, but I couldn't get this to work with any examples here. I've had to use the following:

    $('[rel="tooltip"]').on('click', function () {
        $(this).tooltip('hide')
    })
    

    This also shows the tooltip again upon hover.

提交回复
热议问题