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.

tooltips stay open when element disabled and tooltip visible

See original GitHub issue

Example here: https://jsfiddle.net/x5ukfe8L/8

In the example, there are two buttons:

  • The red button has v-b-tooltip directly on the button
  • The green button has it on a span surrounding the button

When clicking either button:

  1. both buttons are disabled
  2. an alert is shown
  3. after 1500ms both buttons are enabled

For the red button, the tooltip shown on hover won’t disappear after the click. For the green button, it goes away when the mouse moves out of the button. (For Chrome Version 67.0.3396.87)

On Edge, the green button’s tooltip doesn’t disappear reliably.

On Firefox, the red tooltip will go away if the mouse renters and leaves the button.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
nburlettcommented, Jun 17, 2019

I ended up just using a button group as the wrapper anywhere I needed a disabled button with an explanation of why it’s disabled. This can even be nested inside of another button group, which is super-handy.

https://jsfiddle.net/rnbzqhjf/2/

0reactions
tmorehousecommented, Apr 10, 2020

@Dual-Ice you need to place the popover on the <b-input-group-append> or <b-input-group-prepend> and not wrap the button in a <div> (which affects the layout/borders)

See here an example here https://jsfiddle.net/c2pvsw61/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Show tooltip on disabled elements and ... - Syncfusion
By default, tooltips will not be displayed on disabled elements. However, you can enable this behavior by using the following steps: Add a...
Read more >
How to enable Bootstrap tooltip on disabled button?
Disabled elements Elements with the disabled attribute aren't interactive, meaning users cannot focus, hover, or click them to trigger a tooltip ...
Read more >
Tooltips · Bootstrap v5.0
Elements with the disabled attribute aren't interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a...
Read more >
How to enable Bootstrap tooltip on disabled button
By default tooltips is initialized by selecting the specified element and call the tooltip() method using jQuery. · To position the tooltip data- ......
Read more >
Tooltip | Components - BootstrapVue
Note: the trigger element must exist in the DOM and be in a visible state in order for the tooltip to show. Disabling...
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