From ad831d73fa7c824f923c68bd8d4d439b4545c3d7 Mon Sep 17 00:00:00 2001 From: tkow Date: Thu, 13 Jan 2022 04:06:24 +0900 Subject: [PATCH] fix: change description for api change --- docs/Inputs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Inputs.md b/docs/Inputs.md index 7615d50398f..e903c5c5acd 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -278,7 +278,7 @@ To override the style of all instances of `` using the [material-ui | `labelSingle` | Optional | `string` | 'ra.input.file. upload_single' | Invite displayed in the drop zone if the input accepts one file | | `labelMultiple` | Optional | `string` | 'ra.input.file. upload_several' | Invite displayed in the drop zone if the input accepts several files | | `placeholder` | Optional | `ReactNode` | - | Invite displayed in the drop zone, overrides `labelSingle` and `labelMultiple` | -| `onSubmitRemove` | Optional | `Function` | - | Set remove button click handler. Main difference from options.onRemove is able to cancel to remove the file's list item if it returns false `(file) => boolean \| Promise` | +| `validateFileRemoval` | Optional | `Function` | - | Validate removing items. This is able to cancel to remove the file's list item by onRemove handler when you want to do so by throwing Error. `(file) => void \| Promise` | | `options` | Optional | `Object` | `{}` | Additional options passed to react-dropzone's `useDropzone()` hook. See [the react-dropzone source](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.js) for details . | `` also accepts the [common input props](./Inputs.md#common-input-props).