I wrote the following code 2 months ago and it was working normally. Unfortunately, today I noticed its been not working since 2 3 weeks. I think there's a problem with mui libraries
Here is a Screenshot about the error
and here is code below:
<Autocomplete
multiple
id="checkboxes-tags-demo"
options={result}
groupBy={(option) => option.type}
fullWidth
onChange={(event, newValue) => {
setFav(newValue)
}}
getOptionLabel={(option) => option.title}
renderOption={(props, option) => (
<div {...props} className={styles.resultBox}>
<div className={styles.poster}>
<img
src={
"https://www.themoviedb.org/t/p/w440_and_h660_face/" +
option.poster_path
}
/>
</div>
<div className={styles.desc}>{option.title}</div>
</div>
)}
renderInput={(params) => (
<TextField
{...params}
className={styles.SearchBox}
variant="standard"
onChange={handleSearch}
placeholder="Favorites"
/>
)}
/>