fix(striker-ui): don't pass unrelated props to MUIAutocomplete

main
Tsu-ba-me 3 years ago
parent 75606eb9a0
commit 4f7fe063da
  1. 3
      striker-ui/components/Autocomplete.tsx

@ -65,6 +65,7 @@ const Autocomplete = <
messageBoxProps,
renderInput,
sx,
...autocompleteRestProps
} = autocompleteProps;
const combinedComponentsProps: AutocompleteProps<
T,
@ -124,7 +125,7 @@ const Autocomplete = <
// eslint-disable-next-line react/jsx-props-no-spreading
{...{
PaperComponent: GrowPaper,
...autocompleteProps,
...autocompleteRestProps,
componentsProps: combinedComponentsProps,
renderInput: combinedRenderInput,
sx: combinedSx,

Loading…
Cancel
Save