close dropdown panel when empty options array
Open
Nobody has claimed this yet.
scope: system
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce 🕹
Link to live example:
Steps:
1.click amd dropdown panel options
2. clear options array
3.dropdown panel is show
Current behavior 😯
dropdown panel is show with options list
Expected behavior 🤔
need hide options panel
Context 🔦
it show not actualy datas. options is empty and not be selected
Your environment 🌎
npx @mui/envinfov4
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported dropdown behavior: open the panel, clear the options array, and verify whether the panel remains visible. Trace the dropdown component responsible for rendering the options list; done means the options panel is hidden when the array is empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100