Skip to content

[Bug] Calling reset with values and keepDefaultValues doesn't update values #6710

Answered by mkrnkv
mkrnkv asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like reset(values, { keepDefaultValues: true } works in my example in versions before 7.9.0.

Here's a simplified CSB that shows the issue: https://codesandbox.io/s/nameless-monad-fvkt2

If you go back to e.g. version 7.8.8 the reset will actually change the input values.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@bluebill1049
Comment options

@mkrnkv
Comment options

@bluebill1049
Comment options

@bluebill1049
Comment options

@mkrnkv
Comment options

Answer selected by mkrnkv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants