Tooltips: Quickly hovering over animated tooltips causes positioning to break
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
When quickly hovering off and back onto an item with a tooltip it sometimes causes the tooltip positioning to break. This then places the tooltip at the end of the <body>
and causes horizontal/vertical scrollbars to appear on the page.
If animation is disabled on the tooltips then this problem doesn’t seem to occur.
Reduced test cases
Can see it in action on the Tooltips docs page. Scroll to the Directions examples and move your mouse backwards and forwards over the buttons and eventually you’ll see a horizontal scrollbar appear.
If you attempt to do the same thing on the v5.1 docs page it works perfectly.
Minimal examples:
- With animation it breaks: https://stackblitz.com/edit/xe95wq?file=index.html
- Without animation it’s fine: https://stackblitz.com/edit/xe95wq-1feimf?file=index.html
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.2.0
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Building a tooltip component - web.dev
It is hidden by default and becomes unhidden when an associated element is hovered or focused. A tooltip can't be selected or interacted ......
Read more >Stop wasting your time with tooltips with Tooltip Wrappers!
Learn how to use a tooltip wrapper to avoid a lot of conflicts, and avoid a lot time wasted while placing or linking...
Read more >Creating beautiful tooltips with only CSS - LogRocket Blog
This tutorial shows you how to create, position, and animate a tooltip using only CSS without any additional HTML elements.
Read more >12 (Unbelievably) Good Tooltip Examples and Best Practices
The placing of tooltips can make or break your product, ... Instead, it's supposed to be a pointer-hover-triggered button type.
Read more >css tooltip goes off screen - Stack Overflow
On small screen, hovering over some longer tooltips on right column causes tooltip to go off screen. Is there any way to get...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe #37235 from the 5.2.3 release fixed this
Seems fixed in 5.2.3 to me, no longer reproducible in same location as my comment above.
https://user-images.githubusercontent.com/31130/203406407-5e4399c2-684e-47f5-915b-a050784e3af9.mov