You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
md-fab-speed-dial should support disabled state #7473
The md-fab-speed-dial tag doesn't support "ng-disabled" attribute. Adding it to the trigger button just makes the button looks disabled, but it still opens the speed dial.
You can use ng-disabled for md-button inside md-fab-trigger + ng-if for md-fab-actions
There seems to be a big problem even with this workaround in Angular 1.6.4 with Material 1.1.3: using ng-if prevents the actions from initially being hidden, even using ng-cloak on the parent container. Worse, if the condition for ng-if is false but later becomes true, the trigger becomes enabled and the actions appear! In other words the speed dial shows as open, and I'm required to click on it to close it.
You can use ng-disabled for md-button inside md-fab-trigger + ng-if for md-fab-actions
There seems to be a big problem even with this workaround in Angular 1.6.4 with Material 1.1.3 …
It turns out you also have to switch to using md-scale instead of md-fling to get this workaround to work.
Activity
topherfangio commentedon Mar 17, 2016
Agreed. We'll try to add that functionality soon. In the meantime, PRs would be welcomed 😄
ThomasBurleson commentedon Apr 28, 2016
This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.
vishnu-vv commentedon Mar 23, 2017
Is this issue closed ???
Fixed ???
MicrowaveDev commentedon Mar 24, 2017
@vishnu-vv You can use ng-disabled for md-button inside md-fab-trigger + ng-if for md-fab-actions
garretwilson commentedon Apr 20, 2017
There seems to be a big problem even with this workaround in Angular 1.6.4 with Material 1.1.3: using
ng-ifprevents the actions from initially being hidden, even usingng-cloakon the parent container. Worse, if the condition forng-ifisfalsebut later becomestrue, the trigger becomes enabled and the actions appear! In other words the speed dial shows as open, and I'm required to click on it to close it.garretwilson commentedon Apr 20, 2017
It turns out you also have to switch to using
md-scaleinstead ofmd-flingto get this workaround to work.