Comment 4 for bug 1749992

Revision history for this message
Jason Stephenson (jstephenson) wrote :

For the sake of maybe saving someone else some time.

I first tried adding a standard JavaScript handler on the button to disable the button and return true. This did not prevent double clicking from submitting twice.

I also tried setting a ng-dblclick handler on the button to return false, but that didn't work, either.

There very well may be a race condition between double-clicking the button, the submission of the form, and any handler deactivating the button.

I leave this for now to those who are more versed in AngularJS than I.