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

Missing the component type on FormHelperText.d.ts #20360

Closed
2 tasks done
VagnerNico opened this issue Mar 31, 2020 · 11 comments
Closed
2 tasks done

Missing the component type on FormHelperText.d.ts #20360

VagnerNico opened this issue Mar 31, 2020 · 11 comments
Labels
component: text field This is the name of the generic UI component, not the React module! typescript

Comments

@VagnerNico
Copy link

VagnerNico commented Mar 31, 2020

When I try to define the FormHelperTextProps in the TextField Component, TypeScript rises an error about the missing component prop definition in the FormHelperTextProps.
But FormHelperText.js uses this, so much so that if I use the @ts-ignore, the TextField render propperly.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

https://codesandbox.io/s/spring-firefly-mlm36?file=/src/App.tsx

@oliviertassinari oliviertassinari added the status: waiting for author Issue with insufficient information label Mar 31, 2020
@oliviertassinari

This comment has been minimized.

@VagnerNico

This comment has been minimized.

@oliviertassinari

This comment has been minimized.

@VagnerNico
Copy link
Author

VagnerNico commented Mar 31, 2020

Yes, I didn't erased all the boilerplate, just inserted the TextField on the code, it's opening normally here, just wait seconds before the Typescript start complaining, line 27.

Capture d’écran 2021-06-24 à 20 28 35

@oliviertassinari oliviertassinari added component: text field This is the name of the generic UI component, not the React module! typescript and removed status: waiting for author Issue with insufficient information labels Mar 31, 2020
@AlexAndriyanenko
Copy link
Contributor

If nobody is working on this issue, i can take it.

@SarahFowler73

This comment has been minimized.

@vith
Copy link

vith commented Jun 13, 2022

Here's a slightly different codesandbox repro (I was preparing to open a new issue because I didn't find this one initially)

  • passing a custom component
  • also showing that there's no type error when passing component to a standalone FormHelperText
  • with all latest dependencies as of now

https://codesandbox.io/s/vigilant-meadow-gqdy5x?file=/src/Demo.tsx

@Codex-
Copy link

Codex- commented Jun 20, 2022

Not sure if this is related to this specific issue, seems like it, but the FormHelperTextProps also seems to be missing a few standard props like data-testid:

image

If you do a dirty cast the prop works as expected.

@aprilmintacpineda
Copy link

Not sure if this is related to this specific issue, seems like it, but the FormHelperTextProps also seems to be missing a few standard props like data-testid:

image

If you do a dirty cast the prop works as expected.

still not fixed until today :(

@ZeeshanTamboli
Copy link
Member

It works well in the latest version https://stackblitz.com/edit/vitejs-vite-prztbb. Closing this issue.

Copy link

github-actions bot commented Nov 8, 2024

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@VagnerNico How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! typescript
Projects
None yet
8 participants