Skip to content
Snippets Groups Projects
user avatar
Jamie McClelland authored
When stripe throws an error, and the original form as an onclick event,
we briefly see the error before the form is submitted according to
the onclick event (i.e. the PreventDefault() and return false
does not have any effect).

This fix removes any onclick attributes at the beginning and only
re-adds them and resubmits the form if we should.
3751fe5b
History
Name Last commit Last update