I am looking for a way to add a custom button to the end of material autocomplete. The problem is that it seems popup icon is styled to be at the end of the autocomplete input.
This style cause something like below which prevents from putting a button at the end of autocomplete.
But I want something like below.
The way I am adding this button is by overriding endAdornment of autocomplete textfield.
renderInput={(params) => (
<TextField
{...params}
label={label}
variant="outlined"
InputProps={{
...params.InputProps,
endAdornment: (
<>
<InputAdornment position="end">
<IconButton icon="search" style={{ padding: '2px' }} />
</InputAdornment>
{params.InputProps.endAdornment}
</>
),
}}
/>
)}
Is there any way to do this?


