final-form / final-form/react-final-form

Prevent auto-save if the field doesn't pass validation

Open
#115 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

The auto-save examples really help but there is one thing that I couldn't figure out.
How to prevent submission if the field doesn't pass the validation.

Also in the example https://codesandbox.io/s/5w4yrpyo7k if you change a field into being empty after it has been filled, the diff object is empty instead of an object with the field name key with the value empty string
![final-form](https://user-images.githubusercontent.com/2750170/34939968-7eacc846-f9f6-11e7-8bc5-2477cfa1bef1.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.