Skip to content

Commit 9272935

Browse files
authored
Synchronize docs for ArrayFieldItemTemplate, fixes #4507 (#4534)
1 parent 9fbbc77 commit 9272935

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
1515
should change the heading of the (upcoming) version to include a major version bump.
1616
1717
-->
18+
# 5.24.9
19+
20+
## Dev / docs / playground
21+
22+
- Updated docs for ArrayFieldItemTemplate to include prop `onCopyIndexClick`, fixing [#4507](https://github.com/rjsf-team/react-jsonschema-form/issues/4507)
23+
1824
# 5.24.8
1925

2026
## @rjsf/antd

packages/docs/docs/advanced-customization/custom-templates.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ The following props are passed to each `ArrayFieldItemTemplate`:
225225
- `totalItems`: A number stating the total number `items` in the array.
226226
- `key`: A stable, unique key for the array item.
227227
- `onAddIndexClick: (index) => (event?) => void`: Returns a function that adds a new item at `index`.
228+
- `onCopyIndexClick: (index) => (event?) => void`: Returns a function that copies the item at `index` into the position at `index + 1`
228229
- `onDropIndexClick: (index) => (event?) => void`: Returns a function that removes the item at `index`.
229230
- `onReorderClick: (index, newIndex) => (event?) => void`: Returns a function that swaps the items at `index` with `newIndex`.
230231
- `readonly`: A boolean value stating if the array item is read-only.

0 commit comments

Comments
 (0)