Problem with hover tooltips
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 you hover over an element, the tooltip shows, but does not hide when going away from the element. I am using the below.
Reduced test cases
I am including the following files: JS: https://twbs-bootstrap.netlify.app/docs/5.1/dist/js/bootstrap.bundle.min.js and https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js CSS: https://twbs-bootstrap.netlify.app/docs/5.1/dist/css/bootstrap.min.css
HTML code:
<span title="test">Test</span>
JS code:
$(function() {
$('body').tooltip({selector: "[title]", trigger: "hover", delay: { show: 1000, hide: 0 }});
});
What operating system(s) are you seeing the problem on?
Windows, macOS, Android, iOS, Linux
What browser(s) are you seeing the problem on?
Chrome, Safari, Firefox, Microsoft Edge, Opera
What version of Bootstrap are you using?
main branch
Issue Analytics
- State:
- Created a year ago
- Comments:23 (5 by maintainers)
Top Results From Across the Web
The problem with tooltips and what to do instead - Adam Silver
Tooltips are not only hard to use, but they're normally totally unnecessary. Learn why that is and what you could do instead.
Read more >Problem with CSS Hover-Tooltips in combination with ...
I'm having trouble with my css hover tooltips in combination with containers that have overflow-y:auto (or scroll).
Read more >Hover tooltips displayed on a wrong monitor in Edge
When hovered on the element on the right part of the second monitor tooltips appear on the third (laptop) monitor. Issue disappears if...
Read more >Error tooltip disappears immediately when hovering cursor
Error tooltip disappears immediately when hovering cursor · 1. You have a Flow error · 2. hover over the error · 3. try...
Read more >CSS Tooltip/Hover-not working-please help
Trying to create a tooltip for “first name, last name” text- you'll see by code what I'm trying to do… please tell me...
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
@mohammadizanloo55 Try this, it works. The reason behind this, is that
title
attribute is removed after initialization (first refactoring PR of tootlip. Till thentitle
was just blanked)ref: #34519
_fixTitle
@AgentSmith0 Does this CodePen recreate your issue? (equivalent CodePen with 5.1.3)