Material: SpeedDial: Using ng-cloak along with ng-hide causes issues.

Created on 20 Jan 2016  路  6Comments  路  Source: angular/material

@johnsheldon Creating a separate issue for your ng-cloak/ng-hide issue so we can track it better.

Also having this issue, ng-cloak fix worked for one of our speed dials. However, we have another speed dial which is hidden initially using ng-hide, then shown, and when used in conjunction with ng-cloak it causes the action items to be always expanded and invisible, but clickable.
ng-cloak-with-ng-hide-issue

http://codepen.io/johnsheldon/pen/JGGxNv

_Original comment available at https://github.com/angular/material/issues/6111#issuecomment-165197124_

required

Most helpful comment

@pvillaverde thank you for posting a workaround. I can help you through the process if you are interested in submitting a PR to fix this.

All 6 comments

Should consider watching for $md-resize broadcast.

I have a codepen at http://codepen.io/ed4becky/pen/eJwYvw that illustrates a similiar issue I have using a FAB in a dialog

This issue is closed as part of our 鈥楽urge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

Since it was closed without a solution, for anyone who runs into this problem, here's the workaround I found.
The inline styles for the md-fab-action-items were not being placed, so this CSS does their work:

md-fab-speed-dial.md-scale .md-fab-action-item {
        opacity         : 0;
        transform       : scale(0);
        transition-delay: 2ms;
        z-index         : 22;
}

md-fab-speed-dial.md-scale.md-is-open .md-fab-action-item {
        opacity         : 1;
        transform       : scale(1);
        transition-delay: 0;
        z-index         : 22;
}

@pvillaverde thank you for posting a workaround. I can help you through the process if you are interested in submitting a PR to fix this.

Thanks but I think is more a patch than an actual solution for the problem. If I find a suitable solution I'll submit a PR!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chriseyhorn picture chriseyhorn  路  3Comments

diogodomanski picture diogodomanski  路  3Comments

WebTechnolog picture WebTechnolog  路  3Comments

ghost picture ghost  路  3Comments

bobber205 picture bobber205  路  3Comments