You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The filter method shouldnt create a 'undefined' field in the $form model, because this is the main reason why the resolver is triggering, because Form component is updating internally the $form object exposed through v-slot (creating inside form a formfield object with the key undefined, and the value of the filter input text) and thats what is triggering the validation on the rest of the fields, even if they are pristine.
Because of that, I'm not able to validate every field when changes (only that field and only when modelValue of that field changes) and validate all fields on submit...which is the behaviour what I want
Describe the bug
The filter method shouldnt create a 'undefined' field in the $form model, because this is the main reason why the resolver is triggering, because Form component is updating internally the $form object exposed through v-slot (creating inside form a formfield object with the key undefined, and the value of the filter input text) and thats what is triggering the validation on the rest of the fields, even if they are pristine.
Because of that, I'm not able to validate every field when changes (only that field and only when modelValue of that field changes) and validate all fields on submit...which is the behaviour what I want
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/nj47spp5-7rg17dtr?file=src%2FApp.vue
Environment
It happens in dev mode
Vue version
3.5.13
PrimeVue version
4.2.5
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Then you will see as the 2 fields are shown as errored.
Expected behavior
I want to validate every field when changes (only that field and only when modelValue of that field changes) and validate all fields on submit too
The text was updated successfully, but these errors were encountered: