Skip to content

Commit

Permalink
Merge pull request #5300 from marmelab/fix-sanitize-rest-props-inputs
Browse files Browse the repository at this point in the history
Fix warning when passing FieldProps to Input components
  • Loading branch information
fzaninotto authored Sep 24, 2020
2 parents 90497b1 + d2f8b74 commit 19deccf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/ra-ui-materialui/src/input/sanitizeRestProps.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
export default ({
afterSubmit,
allowEmpty,
allowNull,
alwaysOn,
basePath,
beforeSubmit,
component,
data,
defaultValue,
format,
formatOnBlur,
formClassName,
initialValue,
initializeForm,
input,
isEqual,
isRequired,
label,
limitChoicesToValue,
locale,
meta,
multiple,
name,
options,
optionText,
optionValue,
parse,
record,
ref,
render,
resource,
source,
subscription,
textAlign,
translate,
translateChoice,
type,
validate,
validateFields,
value,
...rest
}: any) => rest;

0 comments on commit 19deccf

Please sign in to comment.