isso
isso copied to clipboard
Prevent clicking submit twice
In the following logic, we clear the comment text or close the box only after the API call succeeds. But if the API call takes a few seconds, then excited users might press "submit" multiple times. Maybe disable clicking the "submit" button as soon as it's clicked the first time?
https://github.com/posativ/isso/blob/10e5a90df94d8f1b710f5b1d9a22172fb84e8978/isso/js/app/isso.js#L109-L122
You'd have to keep track of when to re-enable the button (e.g. editing). But in general, your suggestion is a good idea.
hey @ix5 can i work on this issue
hey @ix5 can i work on this issue
Great, go for it!