I've just noticed that #218 introduced a line that sends a SetFormState(Valid) action immediately after sending the Submit action. Not sure what the purpose of the change is but it results in no Submitting state. I noticed it because I disable the submit button on submit and it's no longer being disabled. If I log formState on render it stays Valid up until the form is successfully submitted. Is this intentional?
|
self.send(SetFormState(Valid)) |
I've just noticed that #218 introduced a line that sends a
SetFormState(Valid)action immediately after sending theSubmitaction. Not sure what the purpose of the change is but it results in noSubmittingstate. I noticed it because I disable the submit button on submit and it's no longer being disabled. If I logformStateon render it staysValidup until the form is successfully submitted. Is this intentional?reform/reform/src/ReForm.res
Line 253 in 6c8d6de