Skip to content

Commit 44c20b4

Browse files
authored
Merge pull request #5977 from marmelab/fix-reference-array-input-props-drilling
Fix ReferenceArrayInput props Drilling
2 parents 6546a20 + 0225c2b commit 44c20b4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
import sanitizeInputRestProps from './sanitizeInputRestProps';
1919
import ReferenceError from './ReferenceError';
2020
import { FieldInputProps, FieldMetaState } from 'react-final-form';
21-
import { sanitizeListRestProps } from 'ra-core';
2221

2322
export interface ReferenceArrayInputProps extends InputProps {
2423
allowEmpty?: boolean;
@@ -169,7 +168,12 @@ const ReferenceArrayInput = ({
169168
translate={translate}
170169
children={children}
171170
{...props}
172-
{...sanitizeListRestProps(controllerProps)}
171+
choices={controllerProps.choices}
172+
loaded={controllerProps.loaded}
173+
loading={controllerProps.loading}
174+
setFilter={controllerProps.setFilter}
175+
setPagination={controllerProps.setPagination}
176+
setSort={controllerProps.setSort}
173177
/>
174178
</ListContextProvider>
175179
</ReferenceArrayInputContextProvider>

0 commit comments

Comments
 (0)