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

Typing of onChange prop is broken #375

Closed
DreierF opened this issue May 22, 2023 · 1 comment
Closed

Typing of onChange prop is broken #375

DreierF opened this issue May 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DreierF
Copy link

DreierF commented May 22, 2023

Since version 5.1.0 the type of the onChange prop is in inferred to have an any parameter. AFAICS this is due to the EventProps that overwrites the explicitly defined onChange?: (value: Value) => void;.

image

Reproduction: https://stackblitz.com/edit/react-ts-8nkjse?file=App.tsx

@wojtekmaj
Copy link
Owner

wojtekmaj commented May 22, 2023

Thanks for the heads up, and more importantly for a good repro. I'm happy to say this has been resolved in 9e8c29c and released in 5.2.0.

@wojtekmaj wojtekmaj added the bug Something isn't working label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants