We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4567071 commit 75dbab5Copy full SHA for 75dbab5
1 file changed
packages/form-core/src/FormApi.ts
@@ -2556,8 +2556,8 @@ export class FormApi<
2556
*/
2557
resetField = <TField extends DeepKeys<TFormData>>(field: TField) => {
2558
this.baseStore.setState((prev) => {
2559
- const fieldDefault = this.getFieldInfo(field)?.instance?.options
2560
- .defaultValue
+ const fieldDefault =
+ this.getFieldInfo(field)?.instance?.options.defaultValue
2561
const formDefault = getBy(this.options.defaultValues, field)
2562
const targetValue = fieldDefault ?? formDefault
2563
0 commit comments