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

Precedence Issue #216

Open
ogheneovo12 opened this issue Mar 1, 2024 · 0 comments
Open

Precedence Issue #216

ogheneovo12 opened this issue Mar 1, 2024 · 0 comments

Comments

@ogheneovo12
Copy link

https://github.com/jannikbuschke/formik-antd/blob/0fa8125e125031e9e0e673affb4e8822fc18e023/src/input/index.tsx#L54C9-L54C25

Noticed that calling formik.resetForm(), actually resets the formik state, but the input still maintained it's value, after further digging, realized that the spread operator disconnects the input from being formik controlled, as the value from the formik state will always be overwritten by that of the value from the spread, which in my case is always undefined.
Moving the spread to the top fixes, before other props specification fixes it.

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