tooltips stay open when element disabled and tooltip visible
See original GitHub issueExample 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:
- both buttons are disabled
- an alert is shown
- 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:
- Created 5 years ago
- Reactions:3
- Comments:12 (7 by maintainers)
Top 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 >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 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/
@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/