Form submit button disabled after submit #726
Labels
feature
New feature or request
help wanted
Extra attention is needed
ready for dev
this issue is ready to be picked up
Summary
After submitting the form using the default "submit" button the submit button is disabled and and cannot be resubmitted. On one hand this is good to prevent double submission, but on the other hand if the request fails- like invalid password on login- there is currently no way to reset the form state so it can be submitted again.
Steps to reproduce
Current Behaviour
The Submit button is permanently disabled and cannot be resubmitted
Expected Behaviour
If the request fails there should be a way to clear the form state so the form can be resubmitted.
Possible Solutions
Add a
formClear()
function to the arguments of theonSubmit
function- i.e.Other feedback
It would be more convenient for consumption if
FormDataReturned
returned the values as an object instead of an array. It could even be a generic so the type could be user defined. This would however be a breaking change.The text was updated successfully, but these errors were encountered: