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.

ng-show on md-button #678

@wiwofone

Description

@wiwofone

I have an ng-show on an md-button. A click on the button triggers a function (with ng-click) which sets the variable that ng-show depends on, effectively hiding the button and showing a couple of other buttons. I.e: a click on the button hides the button itself and shows new buttons.

However, even with the ripple ink effect disabled, the md-button doesn't seem to hide until the ripple (existent or non-existent) has finished its animation. This means that the button isn't hidden immediately, but with a slight delay.

When doing this with regular buttons, the problem does not arise, which leads me to think that the problem is with the md-button directive. How would one go about fixing this? I've included a short gif (with clicks highlighted) to make it easier to understand.

md-button2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions