primevue icon indicating copy to clipboard operation
primevue copied to clipboard

Form: reset not working, changed value not update input

Open damuso opened this issue 1 year ago • 1 comments

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.

damuso avatar Nov 12 '24 17:11 damuso

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

vercel[bot] avatar Nov 12 '24 17:11 vercel[bot]

Are there plans to merge/release this soon? Forms are almost unusable with no outside access to field states and broken reset.

trafium avatar Dec 18 '24 14:12 trafium

Thanks a lot for your contribution!

mertsincan avatar Jan 06 '25 11:01 mertsincan