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

Input and InputNumber do not have onKeyUp props #4717

Closed
jch254 opened this issue Jan 25, 2017 · 3 comments
Closed

Input and InputNumber do not have onKeyUp props #4717

jch254 opened this issue Jan 25, 2017 · 3 comments

Comments

@jch254
Copy link
Contributor

jch254 commented Jan 25, 2017

Environment

  • antd version: 2.6.4
  • OS and its version: macOS Sierra v10.12.2
  • Browser and its version: Google Chrome v55.0.2883.95

What did you expect?

Input and InputNumber do not have onKeyUp props. As the user types I need to run validation and if valid, send a request to the server with the current value of the field. onKeyDown on gives me the value of pressed key and I can access the previous value (before the key press) through event.target.value. It's possible to piece together the current value using these but onKeyUp would be more reliable.

What happened?

Input and InputNumber do not have onKeyUp props.

Re-producible online demo

https://ant.design/components/input/
https://ant.design/components/input-number/

@afc163
Copy link
Member

afc163 commented Jan 25, 2017

Will be fixed in antd@2.7.0

@jch254
Copy link
Contributor Author

jch254 commented Jan 30, 2017

谢谢 @afc163 !

@lock
Copy link

lock bot commented May 2, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants