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

Type error when using sx prop on SingleFieldList #7733

Closed
mediafreakch opened this issue May 23, 2022 · 1 comment · Fixed by #7735
Closed

Type error when using sx prop on SingleFieldList #7733

mediafreakch opened this issue May 23, 2022 · 1 comment · Fixed by #7735

Comments

@mediafreakch
Copy link
Contributor

What you were expecting:

Can use sx prop on SingleFieldList component as documented.

What happened instead:

Type error is thrown:

Property 'sx' does not exist on type 'IntrinsicAttributes & Pick<SingleFieldListProps, "color" | "translate" | "hidden" | "style" | "className" | "children" | ... 252 more ... | "manifest"> & Pick<...> & Pick<...>

Steps to reproduce:

Related code:

The type error pops up in the editor: https://codesandbox.io/s/boring-shape-r5kd1y?file=/src/posts/PostShow.tsx

Other information:

Environment

  • React-admin version: 4.0.4
  • Last version that did not exhibit the issue (if applicable): 3.19
  • React version: 17
  • Browser: Any
@djhi
Copy link
Collaborator

djhi commented May 23, 2022

Indeed, thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants