Skip to content

Commit 44e1f02

Browse files
committed
fix: useForm style error, close #5635
1 parent 09ff914 commit 44e1f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form/useForm.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ function useForm(
252252
if (validateInfos[name].validateStatus === 'validating') {
253253
const res = results.filter(result => result && result.errors.length);
254254
validateInfos[name].validateStatus = res.length ? 'error' : 'success';
255-
validateInfos[name].help = res.length ? res.map(r => r.errors) : '';
255+
validateInfos[name].help = res.length ? res.map(r => r.errors) : null;
256256
options?.onValidate?.(
257257
name,
258258
!res.length,
@@ -293,7 +293,7 @@ function useForm(
293293
validateInfos[key] &&
294294
Object.assign(validateInfos[key], {
295295
validateStatus: '',
296-
help: '',
296+
help: null,
297297
});
298298
});
299299
};

0 commit comments

Comments
 (0)