Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typescript] ListItem forward props does not work #21931

Closed
2 tasks done
michael-land opened this issue Jul 25, 2020 · 1 comment
Closed
2 tasks done

[typescript] ListItem forward props does not work #21931

michael-land opened this issue Jul 25, 2020 · 1 comment
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

Comments

@michael-land
Copy link
Contributor

  • 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 😯

  Types of property 'button' are incompatible.
    Type 'boolean | undefined' is not assignable to type 'true'.
      Type 'undefined' is not assignable to type 'true'.ts(2769)

image

Expected Behavior 🤔

No type error

Your Environment 🌎

Tech Version
Material-UI v4.11.0
React 16.13.1
Browser
TypeScript 3.9.7
etc.
@michael-land michael-land added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 25, 2020
@eps1lon
Copy link
Member

eps1lon commented Jul 27, 2020

Duplicate of #14971

@eps1lon eps1lon marked this as a duplicate of #14971 Jul 27, 2020
@eps1lon eps1lon closed this as completed Jul 27, 2020
@eps1lon eps1lon added component: list This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants