Redux-form validate on auto-fill -
we have login form using redux-form
not allow login button pressed until username , password have been populated.
it works fine, except when chrome autofills username/password field need trigger validation of form if both fields filled in can enable login button.
how this?
currently seems there no way trigger sync validation through action creator (see https://github.com/erikras/redux-form/issues/211).
what seems work me calling handlesubmit
empty handler:
componentwillmount() { this.props.handlesubmit(() => ({})); }
although i'm not sure work in scenario chrome , autofill. remember having similar issues there, autofilled input not marked changed.
Comments
Post a Comment