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

InputBaseProps is missing onInvalid callback so wrong type is used #34753

Closed
2 tasks done
KuSh opened this issue Oct 13, 2022 · 2 comments
Closed
2 tasks done

InputBaseProps is missing onInvalid callback so wrong type is used #34753

KuSh opened this issue Oct 13, 2022 · 2 comments
Assignees
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material typescript

Comments

@KuSh
Copy link
Contributor

KuSh commented Oct 13, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Code is working but doesn't path strict tsc compilation :

reproduction case

Current behavior 😯

Error Property 'setCustomValidity' does not exist on type 'EventTarget'.ts(2339)

Expected behavior 🤔

No error

Context 🔦

Use invalid event handler without typescript error

Your environment 🌎

codesandbox.io mui official template

@KuSh
Copy link
Contributor Author

KuSh commented Oct 13, 2022

PR #33162 fixes the problem

@michaldudak michaldudak added component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Oct 14, 2022
@michaldudak michaldudak self-assigned this Oct 14, 2022
@michaldudak michaldudak added bug 🐛 Something doesn't work typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 14, 2022
@ZeeshanTamboli
Copy link
Member

Fixed by #33162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material typescript
Projects
None yet
Development

No branches or pull requests

3 participants