material icon indicating copy to clipboard operation
material copied to clipboard

ng-if delayed for button hiding

Open adamwlarson opened this issue 11 years ago • 5 comments

      <md-button ng-if="!player.editing" class="md-raised md-primary" data-ng-click="EditPlayer($index)">Quick Edit</md-button>
      <md-button ng-if="player.editing" class="md-raised md-primary" data-ng-click="SavePlayer($index)">Save</md-button>

I have those two lines, without using md-button it switches perfectly, but once I switch over there is a brief period where both buttons show. This could be related to the css animation upon clicking since I switch that flag (player.editing) upon ng-click firing. It seems to take about a second or so before it removes the one that should be invisible.

Maybe there is a better way to do this, but I still feel like this is possibly a bug?

adamwlarson avatar Feb 13 '15 05:02 adamwlarson

Possibly a duplicate of #936

epelc avatar Feb 13 '15 21:02 epelc

Definitely a duplicate of that issue, sorry I missed that!

adamwlarson avatar Feb 13 '15 21:02 adamwlarson

@maddogawl Can you please close this. 9aedd74 has fixed #936

epelc avatar Apr 14 '15 13:04 epelc

Thank you!

adamwlarson avatar Apr 14 '15 14:04 adamwlarson

@maddogawl Just want to say thanks for well described bug as I'm having this exact issue (but not an md-button but a regular old button element) and came across this issue in Google. <3

dwilt avatar Aug 27 '15 00:08 dwilt