final-form / final-form

🏁 Framework agnostic, high performance, subscription-based form state management

Home Page:https://final-form.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate meta for fieldState is not getting back to false validation when field is focused out

idangozlan opened this issue · comments

Are you submitting a bug report or a feature request?

Bug Report

What is the current behavior?

When running async validation for a field, and leaving the field (focus) while it's validating, it will never get meta.validating set to false (so it will keep showing the validation spinner in this example)

What is the expected behavior?

Behave the same as the field is still on focus. so it will change the meta.validating to false when finish validating

Sandbox Link

https://codesandbox.io/s/wy7z7q5zx5
http://www.giphy.com/gifs/MaZX0zv0vU3ktKSgYf

What's your environment?

Chrome (80.0.3987.122)

Look like a duplicate of final-form/react-final-form#713