angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.56k stars 3.39k forks source link

fab-speed-dial: doesn't support ng-hide or hide attributes on buttons #9902

Open MatiasKiuru opened 7 years ago

MatiasKiuru commented 7 years ago

Actual Behavior:

One of the md-fab-actions gets displayed under the md-fab-trigger when hiding one of the actions using ng-hide. This happens when the FAB is in closed state.

The FAB is in closed state so no actions should be visible.

CodePen (or steps to reproduce the issue): *

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

I just took the demo from docs and added ng-hide to one of the actions (md-buttons). EDIT: The bug also appears when using ng-if to hide actions The hidden element appears to get rendered to the dom as a .md-fab-action-item even when using ng-if.

Angular Versions: *

Additional Information:

Splaktar commented 4 years ago

I can also reproduce this with AngularJS Material's responsive attributes hide, hide-xs, and hide-gt-xs.

It's also still reproducible with AngularJS 1.7.9 and AngularJS Material 1.1.21: updated demo. This was verified on Chrome 80 and macOS Catalina.