I want to use the MUI Autocomplete with a custom renderOption property. Doing so I cannot select an option anymore. What is wrong?
<Autocomplete
disablePortal
id="combo-box-demo"
options={top100Films}
sx={{ width: 300 }}
renderOption={(props, option) => (
<div style={{ padding: "4px 10px" }}>
{option.label + " " + option.year}
</div>
)}
renderInput={(params) => <TextField {...params} label="Movie" />}
/>