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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -