-
Notifications
You must be signed in to change notification settings - Fork 3.4k
ng-show on md-button #678
Comments
@wiwofone - very interesting issue. can you provide a plunkr or codepen that demos the issue; a sample app would make it easy for us to confirm a fix. |
I hope you don't mind that I used jsFiddle (found a forkable demo I could use easily). I tried to include all relevant parts exactly as it is in my local code, so that you can rule out eventual stupidity from my part. |
@wiwofone - jsFiddle is fine. Thank you. |
Like in the gif, if I press "Start" for example, the "Start" button doesn't disappear immediately, but takes half a second or so to disappear. The same applies to every other button, the buttons should disappear as soon as they are pressed, but they "lag" a little bit. I created another fiddle using native buttons, where this problem doesn't occur. |
I temporarily fixed it by setting |
Hi, I somehow got the exact same issue, however using latest version. |
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.
The text was updated successfully, but these errors were encountered: