From dd6bb4d043cc2b79948fafaa5c57262694df25ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Zaninotto?= Date: Sun, 25 Feb 2024 09:15:21 +0100 Subject: [PATCH] Fix AutocompleteInput ignores TextFieldProps Autocomplete accepts TextFieldProps, which allows to override the props of the inner TextField (see https://mui.com/material-ui/api/text-field/). This ability was lost in #9559 --- packages/ra-ui-materialui/src/input/AutocompleteInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx b/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx index b7a21952148..fa157cb98f5 100644 --- a/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx +++ b/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx @@ -600,6 +600,7 @@ If you provided a React element for the optionText prop, you must also provide t variant={variant} className={AutocompleteInputClasses.textField} {...params} + {...TextFieldProps} InputProps={mergedTextFieldProps} size={size} />