Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
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

Closed

Description

@bchen888

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.

http://codepen.io/anon/pen/wGGWVb

Activity

  1. added
    P4: minor
    on Mar 17, 2016
  2. self-assigned this
    on Mar 17, 2016
  3. added this to the milestone on Mar 17, 2016
  4. topherfangio commented on Mar 17, 2016

    @topherfangio
    Contributor

    Agreed. We'll try to add that functionality soon. In the meantime, PRs would be welcomed 😄

  5. modified the milestones: , Deprecated on Apr 20, 2016
  6. ThomasBurleson commented on Apr 28, 2016

    @ThomasBurleson
    Contributor

    This issue is closed as part of our deprecation effort.
    For details, see our post Spring Cleaning 2016.

  7. vishnu-vv commented on Mar 23, 2017

    @vishnu-vv

    Is this issue closed ???
    Fixed ???

  8. MicrowaveDev commented on Mar 24, 2017

    @MicrowaveDev

    @vishnu-vv You can use ng-disabled for md-button inside md-fab-trigger + ng-if for md-fab-actions

  9. garretwilson commented on Apr 20, 2017

    @garretwilson

    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.

  10. garretwilson commented on Apr 20, 2017

    @garretwilson

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4: minortype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions