Submit button only works once
Closed this issue · 0 comments
mennovanhout commented
If formal renders a submit button it uses the following code in the onClick attribute.
if (this.getAttribute('rel') == 'submitted') {
return false;
};
this.setAttribute('rel', 'submitted');
setTimeout(function() {
this.removeAttribute('rel')
}, 3000);
The setTimeout/removeAttribute doesn't work so it will never remote the attribute rel.
This means we can no longer submit the form again.