primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.64k stars 1.24k forks source link

Form: reset not working, changed value not update input #6767

Open damuso opened 1 week ago

damuso commented 1 week ago

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.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **primevue** | ⬜️ Ignored ([Inspect](https://vercel.com/primetek/primevue/7k48hZwR65Y3LFTaFQrsokRXCMyW)) | [Visit Preview](https://primevue-git-fork-damuso-issue-6755-primetek.vercel.app) | Nov 17, 2024 5:26pm | | **primevue-v3** | ⬜️ Ignored ([Inspect](https://vercel.com/primetek/primevue-v3/7bZvsAkndoDMxKWyTbkcKZmLxDs5)) | [Visit Preview](https://primevue-v3-git-fork-damuso-issue-6755-primetek.vercel.app) | Nov 17, 2024 5:26pm |