Skip to content

Commit 44af65d

Browse files
fix: don't use ref for raw
1 parent c963302 commit 44af65d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/useInputs.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export function useInputs<T>({
126126
const baseProps: InputT<FormInputBaseProps> = (k, h) => {
127127
updateErrorHandler(k, h);
128128
return removeEmpty({
129-
...context.referencer(k, context.formIndex),
130129
testID: k,
131130
onLayout: onLayoutKey(k),
132131
onBlur: blur(k, h),
@@ -137,6 +136,7 @@ export function useInputs<T>({
137136
};
138137

139138
const text: InputT<FormTextInputProps> = (k, h) => ({
139+
...context.referencer(k, context.formIndex),
140140
...baseProps(k, h),
141141
value: deepGet(values.current, k) || '',
142142
onChangeText: referencedCallback(
@@ -147,6 +147,7 @@ export function useInputs<T>({
147147

148148
const numberRawCreator = useNumberRaw<T>({ locale, referencedCallback });
149149
const numberRaw: InputT<FormTextInputProps> = (k, h) => ({
150+
...context.referencer(k, context.formIndex),
150151
...baseProps(k, h),
151152
...numberRawCreator(k, h, values.current, changeValue),
152153
});

0 commit comments

Comments
 (0)