[Select] MuiNativeSelect-iconOpen is not applied when control is opened
Nobody has claimed this yet.
- 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:
The issue is visible on the component's demo page in the documentation: Select.
Steps:
- Open the demo page on a mobile device or a browser's emulated mobile view
- Click on the Native Select demo component
Current behavior 😯
The icon does not rotate because the MuiNativeSelect-iconOpen class is not applied to the icon when the control is opened.
Expected behavior 🤔
The icon rotates because the MuiNativeSelect-iconOpen class is applied to the icon, just like it works for the regular Select component.
Context 🔦
I was trying to implement a custom dropdown icon and overriding the MuiNativeSelect-iconOpen did not do anything despite being mentioned on the component's api documentation, leading me to notice that said class is never actually applied to the icon.
Your environment 🌎
Irrelevant considering this issue also occurs on the component's demo page.
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 with the Native Select implementation and compare it with the regular Select behavior described in the issue. Reproduce the problem from the Select demo page on a mobile device or emulated mobile view; done means the MuiNativeSelect-iconOpen class is applied when the native control opens and the icon rotates.
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
- Mostly clear
- Newbie friendliness
- 35/100