Redux-form: [v6] isValid returns true until field change

Created on 6 Aug 2016  路  3Comments  路  Source: redux-form/redux-form

I'm setting up a form similar to the one in http://redux-form.com/6.0.2/examples/syncValidation/ but I'm using the initialize action creator to initialize its values. If I initialize it using values that are invalid (i.e., that make my validate() function return errors) and I then use the isValid state selector, isValid returns true while I would expect it to return false.

If I type a character into one of my form fields and then call isValid it then returns false as it should.

Am I missing something here? If I initialize a form with invalid values and then call isValid I would expect it to return false regardless of whether the user has modified those values in any way.

Thanks!

Most helpful comment

I have the same problem.. with an empty form ... the first time the form is render it validate correctly .. then I run props.reset() and the next submit never call the validate function

All 3 comments

I have the same problem.. with an empty form ... the first time the form is render it validate correctly .. then I run props.reset() and the next submit never call the validate function

Closing due to inactivity.

In case you still have problems, please open a formal bug report.
Otherwise, please ask for help at StackOverflow.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaraquistain picture jaraquistain  路  3Comments

shikelong picture shikelong  路  3Comments

tylergoodman picture tylergoodman  路  3Comments

wtfil picture wtfil  路  3Comments

srajchevski picture srajchevski  路  3Comments