ListItem with button={boolean} causes TypeScript error #19264
Labels
component: button
This is the name of the generic UI component, not the React module!
component: list
This is the name of the generic UI component, not the React module!
Current Behavior 😯
This code-snippet
<ListItem button={!deactivate}>/* content */</ListItem>
causes following TypeScript error:Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-f89tj?fontsize=14&hidenavigation=1&theme=dark
Context 🔦
We want to create a list-component, which contains list-items with optional button-behaviour.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: