[material-ui][Select] "Property 'muiName' does not exist" on Select #41707
Labels
bug 🐛
Something doesn't work
component: select
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
package: material-ui
Specific to @mui/material
regression
A bug, but worse
typescript
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-dttfff?file=Demo.tsx
Steps:
Select.muiName
to the custom component'smuiName
, as described at https://mui.com/material-ui/guides/composition/#wrapping-components.Current behavior
TypeScript error:
Expected behavior
Successful compilation.
Context
Wrap a Select component, as described at https://mui.com/material-ui/guides/composition/#wrapping-components.
This issue was apparently introduced by #39137; it changed the type of
Select
from("a function that returns a JSX.Element and also has a
muiName
prop") to("a function that returns a JSX.Element that has a
muiName
prop").Your environment
npx @mui/envinfo
Search keywords: Select muiName
The text was updated successfully, but these errors were encountered: