Actual behavior:
CodePen or Steps to reproduce the issue:
Angular Versions:
Additional Information:
Not supported.
Why is not supported? A user might not be aware of why a button is disabled.
We'd also like to explain to our users why a button is disabled.
@ThomasBurleson Will this be supported in material2?
Would love to see this feature!
We're having the same issue here - the only solution is to add external css to make this work or use a new library for tooltips
This issue states that this is a browser-related problem. A browser does not fire mouse events for disabled buttons #2576
Seems like a quick workaround is to take the <md-tooltip> out of the <md-button> and put them both in a container <div>
<div>
<md-button ng-disabled="true">
<md-icon>view_list</md-icon>
</md-button>
<md-tooltip>This is disabled because ...</md-tooltip>
</div>
florin05,
solution with div has no effect....
@Pranay92 - Can you share CSS that did the trick to show tooltip on disabled
The code I posted still works for me, here is a screenshot.
To be precise, the button contains an icon, if it is empty there is nothing to hover over, so I am updating my code sample
+1
@lfreneda As @florin05 posted, you can wrap the button in a div or span and then add the tooltip to that. This is a browser restriction and is not an AngularJS Material issue.
Most helpful comment
Why is not supported? A user might not be aware of why a button is disabled.