ListItem button props set to hard true. #22402
Labels
component: list
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
typescript
Current Behavior 😯
Looking to
ListItem
type definition in the following path*node_modules/@material-ui/core/ListItem/ListItem.d.ts
, I findbutton
property taking type oftrue
.Expected Behavior 🤔
Shouldn't be a
boolean
instead of hardtrue
??What is the reason of setting it to hard
true
?Steps to Reproduce 🕹
We are using
styled-components
here.Steps:
ListItem
from@material-ui/core'
.styled-components
.ListItem
component without button prop. Eslint will produce an error message.Context 🔦
We are using
ListItem
as a menu list with button. but some of them are not using button for some special condition. We have to make a turn around to solve it. With this error, we can't useListItem
anymore to prevent inconsistent code.Your Environment 🌎
The text was updated successfully, but these errors were encountered: