Skip to content

[Select] MenuListProps missing property 'component' #17579

@urielvan

Description

@urielvan
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions