The issue with the clear button is specific to Chromium; it does not appear in Firefox.
Take a look at an example of a MUI React Autocomplete component displaying two clear buttons.
Various solutions mentioned in this thread only hide the rightmost button, not the one on the left that I'm trying to hide.
How can I successfully hide the left clear button?
This issue seems to arise when type: 'search'
is included in InputProps
.
Below is a minimal, reproducible code snippet showcasing this behavior specifically in Chromium Version 110.0.5481.100:
<Autocomplete
disablePortal
disableClearable
id="combo-box-demo"
options={supported_games}
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="Movie" InputProps={{ ...params.InputProps, type: 'search'}} />}
/>