dirty
-state comparison is to strict with initial values
#4341
Labels
✨ enhancement
a "nice to have" feature
dirty
-state comparison is to strict with initial values
#4341
What happened?
I wanted to create a new User with Firstname, Lastname and Category in a Form.
The category is initially already set (in real life, the values object is much more complex)
The Problem ist, that
isEqual
is answering now with false (and therefore dirty is totrue
), but actually is isn't dirty because there have not been made any changes.The reason is the check of the keys, that varies when comparing initialValues to currentValues
This might be related to this issue: #4320
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
https://stackblitz.com/edit/u8xuns?file=src%2FApp.vue
Code of Conduct
The text was updated successfully, but these errors were encountered: