<md-tab id="tab2" aria-controls="tab2-content" ng-disabled="true">
Some Title
<md-tooltip>
This Feature is not available yet
</md-tooltip>
</md-tab>
the tooltip is disabled too and don't works on hover.
After a little investigation of this issue, there seems to be two issues here:
while ($window.getComputedStyle(parent[0])['pointer-events'] == 'none')
while ($window.getComputedStyle(parent[0])['pointer-events'] == 'none') {
parent = parent.parent();
}
will have 'parent' as the 'md-header-items' element (in my test). This is not good as a tooltip's parent and will not work. I guess the 'quick and dirty' solution in this case will be to wrap the '
Is it possible to contribute here? I was reading earlier that you are not ready for contributing. I am willing to contribute to this awesome project, but I'm not sure that I'm not waisting my time here.... (:
Same issue with md-button. If disabled, then tooltips do not display.
Hey,
I'm not sure how exactly this (section 2) can be solved without a massive code refactoring. I have no idea who can I talk to here to get advises, and I would love to contribute and fix this issue (already invested several hours in this issue)
+1 for making tooltips available inside of ng-disabled
. I think its a common case that user wants to disable a button and the tooltip states why the action is not available (yet). I solved it with wrapping the button
inside of a span
but it might be clean if the tooltip would be available.
+1. Tooltip on a disabled control is actually important to communicate why it's disabled
+1 for making tooltips available on disabled elements.
+1
+1
@dohomi could you share your workaround? I've tried this but it doesn't work. Thanks.
Oh, and +1.
@john2x
I just changed the span to div, and then you'll see how it works. In general it means, that if you'd choose span as the container just add a few more lines of CSS. Cheers
+1
+1
@dohomi Sadly your workaroud didn't work for me, nor in my project nor on codepen.
Anyway +1 for the issue!
+1 here too. Would be pretty handy. :)
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
quickie @dohomi fork that seems to be working
http://codepen.io/anon/pen/adVvLQ?editors=100
and +1 (: ofc
+1 really need this
+1
+1, the workaround with the div tag works, but sometimes it has a different (and extrange) behavior and the tooltip doesn't disappear.
+1
+1
Add for this http://codepen.io/anon/pen/adVvLQ?editors=100
css like this:
.md-button:disabled {
z-index: -1;
}
work better!
Very nice!
Sent from my iPhone
On Mar 15, 2016, at 9:42 AM, Валерий [email protected] wrote:
Add for this http://codepen.io/anon/pen/adVvLQ?editors=100
css like this:
.md-button:disabled {
z-index: -1;
}work better!
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/angular/material/issues/1667#issuecomment-196822548
+1 really need this
+1
So now all the tracked issues people have posted and +1 on are just closed due to spring cleaning? So we just repost them all again? They don't get fixed by closing them. While I understand cleaning up is needed, some items are easily removed, while others should stay to be tracked.
This one is fairly simple, and heavily requested so I don't see how it fits the criteria for spring cleaning.
The issue has a working test fork, and there's no workaround I'm aware of.
@ThomasBurleson The above comment was directed at you.
+1
So now all the tracked issues people have posted and +1 on are just closed due to spring cleaning?
I've run into half a dozen issues like this one that have been heavily requested, but closed with no explanation or fix. Really destroys confidence. :-1:
@houmark - thx for the ping. Based on the +1(s), this should be reopened.
This is also, btw, part of our policy... that we can reopen with new PR, significant, +1(s), or easy fix. Thanks again.
Hey everyone. I understand that this is a pretty common use case and has been open for a while, however I don't see a good way of solving it within Material. The issue here is that if certain elements are disabled, the browser just won't fire any events from them, which seems to be according to the spec. I see a few ways of working around it:
Neither of these are good solutions, because they're either unreliable, bad for performance or might produce unexpected results. On the other hand, it should be simple to work around it in your own project. Here are a few ways of doing it, some of which have also been posted above.
``` html
Button
``` html
Button
``` html
Button
Button
```
Finally, we're always open to suggestions about how we could get around this properly.
+1
Closing since we can't do much about this and there are ways to work around it.
Just add the content of button under span:
<button class="btn btn-primary btn-md"
ng-click="Submit" ng-disabled="!enableSubmit">
<span>
Submit <i class="fa fa-check" aria-hidden="true"></i>
<md-tooltip md-direction="top">Submit not Available</md-tooltip>
</span>
</button>
This worked for me
Thank you, rushiraj111!!
Most helpful comment
Hey everyone. I understand that this is a pretty common use case and has been open for a while, however I don't see a good way of solving it within Material. The issue here is that if certain elements are disabled, the browser just won't fire any events from them, which seems to be according to the spec. I see a few ways of working around it:
Neither of these are good solutions, because they're either unreliable, bad for performance or might produce unexpected results. On the other hand, it should be simple to work around it in your own project. Here are a few ways of doing it, some of which have also been posted above.
``` html
Tooltip
Button
```
``` html
Tooltip
Button
Button
```
``` html
Tooltip
Button
Button
```
Finally, we're always open to suggestions about how we could get around this properly.