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

Popper: Types missing #12187

Closed
1 of 2 tasks
Klemele opened this issue Jul 18, 2018 · 1 comment
Closed
1 of 2 tasks

Popper: Types missing #12187

Klemele opened this issue Jul 18, 2018 · 1 comment
Labels
component: Popper The React component. See <Popup> for the latest version. typescript

Comments

@Klemele
Copy link

Klemele commented Jul 18, 2018

Using the example from https://material-ui.com/demos/menus/#menulist-composition with typescript does not work.

Error :

  • Type '({ TransitionProps }: { TransitionProps: any; }) => Element' is not assignable to type '() => ReactElement<any>'
  • Property 'transition' does not exist on type 'IntrinsicAttributes & PopperProps & { children?: ReactNode; }'.
  • This is a v1.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Should compile without issue

Current Behavior

Compile with issue

Steps to Reproduce

Link:
Error 1 : https://codesandbox.io/s/74w0o3x7ox line 56 of Menu.tsx
Error 2 : https://codesandbox.io/s/l528yv8ko7 line 56 of Menu.tsx

Context

Just trying to use the lib with typescript ;)

Your Environment

Tech Version
"@material-ui/core" "1.4.0"
"react" "16.4.1"
"react-dom" "16.4.1"
"react-scripts-ts" "2.16.0"
"tslint" "5.10.0"
"tslint-react" "3.6.0"
@oliviertassinari
Copy link
Member

Fixed by #12161

@oliviertassinari oliviertassinari added typescript component: Popper The React component. See <Popup> for the latest version. labels Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popper The React component. See <Popup> for the latest version. typescript
Projects
None yet
Development

No branches or pull requests

2 participants