I am using the Material UI Autocomplete component with multi select. It works great on desktop, but on mobile, I would like to disable keyboard input and only allow touch selection. In other words, I don't want the smartphone keyboard to appear.
I did not find any params for this in the docs: https://material-ui.com/api/autocomplete/#props
I tried to disable the TextField, but I could still enter text - it seems that the disabled param does not get added to the input field in the page source:
<Autocomplete
disableClearable
options={[...]}
renderInput={(params) => <TextField {...params} label="xxx" disabled />}
blurOnSelect="touch"
/>
I need the autocomplete component without the autocomplete feature :) - I could also switch to the default Select component, but i would like to keep autocomplete on desktop. Also, the Autocomplete component offers multi-selection with checkboxes.