Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 2e9c79d

Browse files
committed
fix: now checking 'name' in values in InputNumber for allocating value for Formik
1 parent b0c7d90 commit 2e9c79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/InputNumber/InputNumber.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function InputNumber({
5555
fieldLevelValidation,
5656
} = useFormContext()
5757

58-
if (values && !value) value = values[id]
58+
if (values && !value) value = values[id || name]
5959

6060
function handleBlurEvent(e: React.FocusEvent<HTMLInputElement>) {
6161
if (handleBlur) handleBlur(e)

0 commit comments

Comments
 (0)