I've seen this happen when the kudos button is double-clicked, or when you click it a second time when the operation is slow to complete.
It doesn't because clicking it changes the action from give to remove, but it doesn't do it until about the same time that the display is updated. If it changed the button action before the backend operation and display update it would work as you would expect, but that would likely bring another set of unintended behavior.
@Tiberius
The way to fix this might be to add an onClick event to the button that greys it out while the AJAX call is in flight.
(May 22, 2016 at 3:05 pm)Thena323 Wrote: That happens to me sometimes when I wind up double-clicking on the kudos, because they didn't appear right away. You'd think that would just Remove Kudos, but it doesn't always if you're clicking too fast. The kudos always show up once I reload the page.
It doesn't because clicking it changes the action from give to remove, but it doesn't do it until about the same time that the display is updated. If it changed the button action before the backend operation and display update it would work as you would expect, but that would likely bring another set of unintended behavior.
@Tiberius
The way to fix this might be to add an onClick event to the button that greys it out while the AJAX call is in flight.