We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ff914 commit 44e1f02Copy full SHA for 44e1f02
components/form/useForm.ts
@@ -252,7 +252,7 @@ function useForm(
252
if (validateInfos[name].validateStatus === 'validating') {
253
const res = results.filter(result => result && result.errors.length);
254
validateInfos[name].validateStatus = res.length ? 'error' : 'success';
255
- validateInfos[name].help = res.length ? res.map(r => r.errors) : '';
+ validateInfos[name].help = res.length ? res.map(r => r.errors) : null;
256
options?.onValidate?.(
257
name,
258
!res.length,
@@ -293,7 +293,7 @@ function useForm(
293
validateInfos[key] &&
294
Object.assign(validateInfos[key], {
295
validateStatus: '',
296
- help: '',
+ help: null,
297
});
298
299
};
0 commit comments