From 823e82f2a6a0404868a02cee9897ecb1b046e7fb Mon Sep 17 00:00:00 2001 From: crazyair <645381995@qq.com> Date: Fri, 12 Apr 2024 09:43:22 +0800 Subject: [PATCH] feat: test --- src/Field.tsx | 1 - src/useForm.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Field.tsx b/src/Field.tsx index aabe042a..9d205d75 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -599,7 +599,6 @@ class Field extends React.Component implements F const originTriggerFunc: any = childProps[trigger]; const valueProps = name !== undefined ? mergedGetValueProps(values) : {}; - console.log('valueProps', valueProps); // warning when prop value is function if (process.env.NODE_ENV !== 'production' && valueProps) { diff --git a/src/useForm.ts b/src/useForm.ts index bc971e3d..eb7820d3 100644 --- a/src/useForm.ts +++ b/src/useForm.ts @@ -905,7 +905,9 @@ export class FormStore { this.getFieldEntities(true).forEach((field: FieldEntity) => { // Add field if not provide `nameList` if (!provideNameList) { - namePathList.push(field.getNamePath()); + field.getNamesPath().forEach(namePath => { + namePathList.push(namePath); + }); } // Skip if without rule