diff --git a/packages/react-ui/src/components/molecules/Autocomplete.d.ts b/packages/react-ui/src/components/molecules/Autocomplete.d.ts index 51b17daea..2989adb7c 100644 --- a/packages/react-ui/src/components/molecules/Autocomplete.d.ts +++ b/packages/react-ui/src/components/molecules/Autocomplete.d.ts @@ -11,8 +11,6 @@ export type AutocompleteProps< > = MuiAutocompleteProps & { creatable?: boolean; newItemTitle?: React.ReactNode | string; - startAdornment?: React.ReactNode; - inputParams?: object; }; declare const Autocomplete: < diff --git a/packages/react-ui/src/components/molecules/Autocomplete.js b/packages/react-ui/src/components/molecules/Autocomplete.js index 5e0a1d558..ecf8a414e 100644 --- a/packages/react-ui/src/components/molecules/Autocomplete.js +++ b/packages/react-ui/src/components/molecules/Autocomplete.js @@ -1,10 +1,8 @@ import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; import { - InputAdornment, MenuItem, Autocomplete as MuiAutocomplete, - TextField, createFilterOptions } from '@mui/material'; @@ -69,22 +67,6 @@ const Autocomplete = forwardRef( renderOption={creatable ? creatableRenderOption : renderOption} freeSolo={creatable || freeSolo} forcePopupIcon={creatable || forcePopupIcon} - renderInput={(params) => { - if (startAdornment) { - params.InputProps.startAdornment = ( - {startAdornment} - ); - } - return ( -
- -
- ); - }} /> ); } @@ -92,9 +74,7 @@ const Autocomplete = forwardRef( Autocomplete.propTypes = { creatable: PropTypes.bool, - newItemTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), - startAdornment: PropTypes.element, - inputParams: PropTypes.object + newItemTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]) }; export default Autocomplete;