Skip to content

Commit

Permalink
Add name to ArrayField (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk authored and jaredpalmer committed Feb 5, 2018
1 parent 6ada716 commit ed3aa53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FieldArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ export class FieldArray extends React.Component<FieldArrayConfig, {}> {
remove: this.remove,
};

const { component, render, children } = this.props;
const props = { ...arrayHelpers, form: this.context.formik };
const { component, render, children, name } = this.props;
const props = { ...arrayHelpers, form: this.context.formik, name };

return component
? React.createElement(component as any, props)
Expand Down

0 comments on commit ed3aa53

Please sign in to comment.