Skip to content

Commit 955aea0

Browse files
committed
Catch initialValue in useField
1 parent 539add9 commit 955aea0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/form-state-manager/src/files/use-field.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ const useField = ({
195195
valueToReturn = valueToReturn.inputValue;
196196
}
197197

198+
const { initialValue, ...clearedProps } = props;
199+
198200
return {
199201
input: {
200202
value: valueToReturn,
@@ -207,7 +209,7 @@ const useField = ({
207209
checked
208210
},
209211
meta: state!.meta,
210-
...props
212+
...clearedProps
211213
};
212214
};
213215

0 commit comments

Comments
 (0)