-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Form: reset not working, changed value not update input #6755
Comments
I have probably found workaround using |
I created PR which may resolve this issue |
Hey, I have noticed, that the reset also triggers validation probably because of "validateOnValueUpdate" being true. Would it be possible to prevent that? This problem appears in the example posted above, where if you click on Reset: $form.reset() the inline validation "Username is required." pops up. Interestingly if you click it again, the form is really reset to initial values. That state would be in my opinion the expected outcome. |
Describe the bug
PrimeVue Form reset not working.
On call
$form.reset()
form states correctly (reseted).But not input value.
It also updates the states, but does not update the input:
$form.username.value = 'NEW VALUE'
dependencies
Reproducer
https://stackblitz.com/edit/eszbvm?file=src%2FApp.vue
PrimeVue version
4.2.1
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
Chrome 130
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: