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.

disabled buttons prevent the tooltip from showing

See original GitHub issue

When I set a button element to disabled, it’s tippy never displays on click or hover event. Is there a workaround for this?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
atomikscommented, Sep 3, 2018

Yes: use a wrapper element that isn’t disabled and apply the tooltip to that.

<div title="tooltip" tabindex="0">
  <button disabled>btn</button>
</div>
tippy('div')
1reaction
atomikscommented, Nov 8, 2018

Well a div is a block element, if you are wrapping an input use a span element instead

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable Bootstrap tooltip on disabled button?
This can be done via CSS. The "pointer-events" property is what's preventing the tooltip from appearing.
Read more >
How to enable Bootstrap tooltip on disabled button
To trigger tooltip on disabled button by wrapping them in <span> span tag and <div> div tag and then adding 'data-toggle','data-placement' and ' ......
Read more >
Tooltip for Disabled button - Microsoft Q&A
1 Answer. Please refer to the following code to enable tooltip for the disabled button: bool IsShown = false; private void Form1_Load(object ...
Read more >
How to Enable Angular Material Tooltips Over Disabled Buttons
Angular Material tooltips don't show when the host element is disabled. This is due to the tooltip being triggered by the DOM mouseenter...
Read more >
Making Disabled Buttons More Inclusive - CSS-Tricks
If you use a mouse, and hover over the submit button, a tooltip is shown explaining why the button is disabled. That's great!...
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