-
-
Notifications
You must be signed in to change notification settings - Fork 183
feat: support keyboard prop #290
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
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/input-number/r0rg64ibz |
Codecov Report
@@ Coverage Diff @@
## master #290 +/- ##
==========================================
+ Coverage 93.04% 93.12% +0.07%
==========================================
Files 1 1
Lines 374 378 +4
Branches 129 134 +5
==========================================
+ Hits 348 352 +4
Misses 26 26
Continue to review full report at Codecov.
|
|
光标会移动到前面,有办法保持原样吗? |
|
好了,部署完了再看看 |
|
例子只拦截了 Up 键,其他都正常,😂 |
|
能改个标准的例子不?方便我瞎点点~ |
|
你说了后我试了试,才发现阻止后,连普通的数字都不能输入了😂,差点出大事儿。 |
|
没禁用时,向上 光标动了 |
|
唔……那是不是干脆加个属性算了,也不用勉强做成 preventDefault 了。 |
👌,起个什么名字好呢😂 |
|
😂 想了半天都找不到适合的名字,感觉如果有个
|
|
可不可以给 onKeyDown 加个类型,如果是 |
|
|
|
@zombieJ 改好了 |
|
|

fix ant-design/ant-design#15682
@zombieJ @afc163