"invalidFields" is always empty
kettanaito opened this issue · 0 comments
kettanaito commented
Environment
- react-advanaced-form: 1.6.2
What
Current behavior
Whenever referenced to invalidFields
(i.e. during onInvalid
callback), its value is always an empty list.
Expected behavior
invalidFields
are either:
a) Empty list, when all fields are valid.
b) A list of fields, which are invalid
Why
There is a wrong filtering performed when composing invalidFields
list.
- R.reject(R.propEq('expected'))
+ R.reject(R.propEq('expected', false))
^^^^^