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.

Tooltip bug when hovering child node

See original GitHub issue

Having a bunch of elements builded in this way:

<button type="button" class="btn btn-primary px-3 hasTooltip" title="Tooltip text" data-toggle="tooltip">
    <i class="fas fa-user m-0"></i>                                
</button>

<button type="button" class="btn btn-primary px-3 hasTooltip" title="Other tooltip text" data-toggle="tooltip">
    <span>Any child element</span>                                
</button>

So when I hover a tootlip target it shows the tooltip nicely. The problem is when I hover any child element of that tooltip element.

The element suddenly dissapears or is being repositioned at the top left corner of the view, breaking the entire behaviour of this Bootstrap component. No matters if it is an icon or a simply span node.

This issue isn’t reproducing in earlier versions of Bootstrap.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
bpobochacommented, Jan 23, 2021

You can add ‘pointer-events: none’ to all elements inside the button. It helped me.

button *{
    pointer-events: none;
  }
0reactions
XhmikosRcommented, Jan 25, 2021

Duplicate of #31646

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap tooltip bug when hovering child node - Stack Overflow
The problem is when I hover any child element of that tooltip element. The element suddenly dissapears or is being repositioned at the...
Read more >
Tooltip - Ant Design
A simple text popup tip. When To Use. The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip...
Read more >
Tooltip disappearing and appearing when moving inside the ...
I solved the problem in the end by changing the tooltip to only appear on hover of a specific part inside the node,...
Read more >
Tooltips for Gantt Elements - DHTMLX Documentation
You can add tooltips to any Gantt element via the corresponding API. ... ContactCount = "5") and it needs to be displayed when...
Read more >
DOM Tooltip Library :: HOWTO
<a href="index.html" onmouseover="domTT_activate(this, event, 'content', ... caption [text|xhtml|DOM Node]: An auto-generated caption will be created if ...
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