[Autocomplete] Option is no longer available but value is still being rendered #33198
Closed
2 tasks done
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
support: question
Community support but can be turned into an improvement
Duplicates
Latest version
Current behavior 😯
When available options are removed via filterOptions, the previously selected options should also be removed.
Expected behavior 🤔
When avaialble options are removed, the previously selected options remain.
Steps to reproduce 🕹
Steps:
https://codesandbox.io/s/checkboxestags-demo-material-ui-forked-qox19g?file=/demo.tsx
Context 🔦
Display values in autocomplete, based on values that are selected in the first autocomplete, removing any options that are no longer available.
"footwear" should no longer be present as "Fashion & Apparel" (the category) has been removed via filterOptions.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: