diff --git a/CHANGELOG.md b/CHANGELOG.md index fd8a6599b5..1964ab617c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,12 @@ it according to semantic versioning. For example, if your PR adds a breaking cha should change the heading of the (upcoming) version to include a major version bump. --> +# 5.24.9 + +## Dev / docs / playground + +- Updated docs for ArrayFieldItemTemplate to include prop `onCopyIndexClick`, fixing [#4507](https://github.com/rjsf-team/react-jsonschema-form/issues/4507) + # 5.24.8 ## @rjsf/antd diff --git a/packages/docs/docs/advanced-customization/custom-templates.md b/packages/docs/docs/advanced-customization/custom-templates.md index 6491efbb5c..c2ecb0d11e 100644 --- a/packages/docs/docs/advanced-customization/custom-templates.md +++ b/packages/docs/docs/advanced-customization/custom-templates.md @@ -225,6 +225,7 @@ The following props are passed to each `ArrayFieldItemTemplate`: - `totalItems`: A number stating the total number `items` in the array. - `key`: A stable, unique key for the array item. - `onAddIndexClick: (index) => (event?) => void`: Returns a function that adds a new item at `index`. +- `onCopyIndexClick: (index) => (event?) => void`: Returns a function that copies the item at `index` into the position at `index + 1` - `onDropIndexClick: (index) => (event?) => void`: Returns a function that removes the item at `index`. - `onReorderClick: (index, newIndex) => (event?) => void`: Returns a function that swaps the items at `index` with `newIndex`. - `readonly`: A boolean value stating if the array item is read-only.