From 9ffa010dfb051830aad0a4d8f611caec6e64bd3b Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 21 Jun 2024 14:37:25 -0400 Subject: [PATCH] [material-ui][Autocomplete] Fix renderOption props type (#42689) --- packages/mui-material/src/Autocomplete/Autocomplete.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.d.ts b/packages/mui-material/src/Autocomplete/Autocomplete.d.ts index 8c12280c8ea32d..ab215eeae54cef 100644 --- a/packages/mui-material/src/Autocomplete/Autocomplete.d.ts +++ b/packages/mui-material/src/Autocomplete/Autocomplete.d.ts @@ -325,7 +325,7 @@ export interface AutocompleteProps< * @returns {ReactNode} */ renderOption?: ( - props: React.HTMLAttributes, + props: React.HTMLAttributes & { key: any }, option: Value, state: AutocompleteRenderOptionState, ownerState: AutocompleteOwnerState,