react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

validateOnBlur is ignored with the setFieldData mutator

Open bertho-zero opened this issue 3 years ago • 1 comments

Hi,

The validate method is called on each change from the moment I use the setFieldState mutator, no matter if there is a validateOnBlur or not.

What is the current behavior?

Validate called on each change.

What is the expected behavior?

Validate should be called only at onBlur.

Sandbox Link

https://codesandbox.io/s/nifty-keller-merlg

bertho-zero avatar Feb 10 '22 10:02 bertho-zero

All mutators initiate validation, and ignore pauseValidation.

bertho-zero avatar Feb 22 '22 17:02 bertho-zero