Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect pristine value #37

Open
LentnerStefan opened this issue Apr 4, 2019 · 0 comments
Open

Incorrect pristine value #37

LentnerStefan opened this issue Apr 4, 2019 · 0 comments

Comments

@LentnerStefan
Copy link

Are you submitting a bug report or a feature request?

A bug, pristine value is incorrect when filling a field, then emptying it.

What is the current behavior?

Initial render => the form is pristine
I fill a field => the form is dirty
I empty the field => the form is still dirty

What is the expected behavior?

Initial render => the form is pristine
I fill a field => the form is dirty
I empty the field => the form is pristine again

Sandbox Link

Works as intended in RFF but not in RFFH:

RFF : https://zn82m7zlrp.codesandbox.io/
vs
RFFH : https://71y11y0v1.codesandbox.io/

What's your environment?

final-form : 4.12.0
react-final-form-hoooks : 1.0.1

Other information

Thank you for all your awesome work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant