Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip remains sometimes on page on element inside sliding div #3446

Closed
xcellenceit opened this issue May 11, 2012 · 2 comments
Closed

Tooltip remains sometimes on page on element inside sliding div #3446

xcellenceit opened this issue May 11, 2012 · 2 comments

Comments

@xcellenceit
Copy link

Hi,

We are using a bootstrap for one of the project and facing an issue with tooltip plugin provided. Its actually not a bug in bootstrap but an issue is created with the situation we're using it.

We have a sliding slidebar that goes inside content div. And buttons for hiding / showing effect with a tooltip. The sliding effect based on jQuery UI slide.

The issue is:

When we click on hide sidebar button, and at the same time moves mouse out of button hover at the time of slide animation, then some times the tooltip doesn't gets hidden, and stays over there on the page.

This happens also on show sidebar too. And when it happens it looks very bad and buggy.

You can check it here: www.sandiegopchelp.com.

How can we fix this?

@richardp-au
Copy link

Just manually hide the tooltip when you click the button, before you trigger the slide animation.

$('#button').on('click', function () {
  $(this).tooltip('hide')
  $('#sidebar').slide() // replace with slide animation
})

@xcellenceit
Copy link
Author

thanks this fixed the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants