Current Behavior 😯
<Select
MenuProps={{
MenuListProps: {
// here Typescript throws error, saying not assignable
// while it does change the wrapping component from ul to div
component: "div"
}
}}
>
Expected Behavior 🤔
No Typescript errors should be shown
Steps to Reproduce 🕹
https://codesandbox.io/s/ancient-platform-3ldzt
Context 🔦
I have a select that may contains 1400+ options, so I think I may replace the MenuList component to a virtualized one, referring https://material-ui.com/zh/components/lists/#virtualized-list
Your Environment 🌎
| Tech |
Version |
| Material-UI |
v4.4.3 |
| React |
|
| Browser |
|
| TypeScript |
v3.6.3, v3.5.2 |
| etc. |
|
Current Behavior 😯
Expected Behavior 🤔
No Typescript errors should be shown
Steps to Reproduce 🕹
https://codesandbox.io/s/ancient-platform-3ldzt
Context 🔦
I have a select that may contains 1400+ options, so I think I may replace the MenuList component to a virtualized one, referring https://material-ui.com/zh/components/lists/#virtualized-list
Your Environment 🌎