Skip to content

v1.0.3

Choose a tag to compare

@knightburton knightburton released this 11 Jan 22:54
· 14 commits to main since this release

This patch fix the unnecessary inner state (as fields) arg on the requiredError handler function and validator rules handler. Now the fields are contains only the final key value pairs.
Example from before state:

validators: [{ rule: (value, fields) => value !== fields.someOtherField.value, error: 'This is not good...' }]

Example with this patch:

validators: [{ rule: (value, fields) => value !== fields.someOtherField, error: 'This is not good...' }]