-
-
Notifications
You must be signed in to change notification settings - Fork 444
New API - resetField('fieldName') #1177
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
Comments
maybe an |
@crutchcorn, I could pick this up if you could give a little more detail. I'm back from holidays so I should have some time around the weekend to open a pr So this is form.resetField() and should revert to the default field value and cleared meta? |
@selah-EN-HC-glitch I just released it to main, so update your packages then you can use |
Thank you for adding this! For nested fields, this only works on the leaves , and not on the parent field. Is there a solution that propagates the reset from the parent field to all of its nested fields? |
Discussed in #1159
Originally posted by wilson12365 February 19, 2025
right now the only way to handle reset a field based on other actions of the form is the following
@crutchcorn has suggested to add
resetField('fieldName')
The text was updated successfully, but these errors were encountered: