Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Apr 12, 2024
1 parent a45cb75 commit 823e82f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ class Field extends React.Component<InternalFieldProps, FieldState> 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) {
Expand Down
4 changes: 3 additions & 1 deletion src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 823e82f

Please sign in to comment.