primevue
primevue copied to clipboard
Form: reset not working, changed value not update input
Defect Fixes
fix #6755
Solution
Added watcher in BaseEditableHolder component which listens for $pcForm.state[inputName] and changes d_value after reset action
Other possible solution
I am not sure if it will be worth adding Event bus for this - discussion needed
Emit reset event from Form component and listen for that event in BaseEditableHolder.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| primevue | ⬜️ Ignored (Inspect) | Visit Preview | Nov 26, 2024 8:08pm |
| primevue-v3 | ⬜️ Ignored (Inspect) | Visit Preview | Nov 26, 2024 8:08pm |
Are there plans to merge/release this soon? Forms are almost unusable with no outside access to field states and broken reset.
Thanks a lot for your contribution!