Skip to content

Commit e344f81

Browse files
olzraitin1k0
authored andcommitted
add formData to ArrayFieldTemplate props (rjsf-team#645)
1 parent 1eb5b73 commit e344f81

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ The following props are passed to each `ArrayFieldTemplate`:
850850
- `uiSchema`: The uiSchema object for this array field.
851851
- `title`: A string value containing the title for the array.
852852
- `formContext`: The `formContext` object that you passed to Form.
853+
- `formData`: The formData for this array.
853854

854855
The following props are part of each element in `items`:
855856

src/components/fields/ArrayField.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ class ArrayField extends Component {
340340
title,
341341
TitleField,
342342
formContext,
343+
formData,
343344
};
344345

345346
// Check if a custom render function was passed in

0 commit comments

Comments
 (0)