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
Typescript Error for Auto-complete #12793
Comments
PR is welcome~ |
testing this, it is just the interface that needs changing, functionally works the same
will correctly trigger the focus event |
@jon-r i tried and everything was fine and i couldn't replicate the error. |
hi @jon-r, could you provide an online reproduce about this? Since |
@zombieJ https://unpkg.com/antd@3.10.1/lib/auto-complete/index.d.ts 3.10.1 also defines see #12498 |
Version
3.10.2
Environment
Reproduction link
https://gist.github.com/jon-r/3078a56733440dcdf8d87c98219450b2
Steps to reproduce
The
onFocus
type does not exist in the AutoComplete prop interface.Pasting the demo gist into an existing react tsx project will raise a type error
What is expected?
that onFocus is a valid prop
What is actually happening?
TS2339 'on focus does not exist on ... AutoCompleteProps'
The text was updated successfully, but these errors were encountered: