Skip to content

Commit

Permalink
Merge pull request #9689 from marmelab/ts-referenceinput-validate
Browse files Browse the repository at this point in the history
[TypeScript] Forbid `<ReferenceInput validate>`
  • Loading branch information
slax57 authored Feb 29, 2024
2 parents 47abf59 + 29e43f0 commit e444030
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ra-ui-materialui/src/input/ReferenceInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,9 @@ export interface ReferenceInputProps
UseReferenceInputControllerParams {
children?: ReactElement;
label?: string;
/**
* Call validate on the child component instead
*/
validate?: never;
[key: string]: any;
}

0 comments on commit e444030

Please sign in to comment.