question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with hover tooltips

See original GitHub issue

Prerequisites

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:closed
  • Created a year ago
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
GeoSotcommented, May 4, 2022

@mohammadizanloo55 Try this, it works. The reason behind this, is that title attribute is removed after initialization (first refactoring PR of tootlip. Till then title was just blanked)

ref: #34519 _fixTitle

2reactions
julien-deramondcommented, May 1, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found