Skip to content

Commit 9a52ed3

Browse files
after updating input comp value inside form comp, it doesn't reflect form initial values
1 parent f62bf22 commit 9a52ed3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/packages/lowcoder/src/comps/comps/textInputComp/textInputConstants.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ export const useTextInputProps = (props: RecordConstructorToView<typeof textInpu
233233
debouncedOnChangeRef.current?.(value, propsRef.current.value);
234234
};
235235

236+
const handleBlur = () => {
237+
touchRef.current = false;
238+
};
239+
236240
// Cleanup refs on unmount
237241
useEffect(() => {
238242
return () => {
@@ -252,6 +256,7 @@ export const useTextInputProps = (props: RecordConstructorToView<typeof textInpu
252256
} as any,
253257
}),
254258
onChange: handleChange,
259+
onBlur: handleBlur,
255260
},
256261
validateState,
257262
];

0 commit comments

Comments
 (0)