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
fix:keydown when keycode.enter,controlled inputnumber can't flush value #306
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/input-number/6Q9VHWkCucx2Ua2ZzKPRF9MQfZeG |
Codecov Report
@@ Coverage Diff @@
## master #306 +/- ##
==========================================
+ Coverage 97.25% 97.27% +0.01%
==========================================
Files 8 8
Lines 401 403 +2
Branches 108 109 +1
==========================================
+ Hits 390 392 +2
Misses 11 11
Continue to review full report at Codecov.
|
能来个测试用例吗? |
ts在e.target.value这里出问题,不太清楚怎么写BaseSyntheticEvent这个里面,e.target是eventTarget类型,未能找到value属性 所以,是不是这个onpressEnter不能这么设置值?我打印是ok的,这个地方如何写泛型或者断言?能帮助一下我吗? |
换了个方法,借用ref来拿值,ok了 |
这个pr没人处理吗? |
rebase 下 |
已经rebase |
再看看? |
|
@mankeheaven 重装依赖试试看? |
@yoyo837 |
删除node_modules 和 lock文件重新安装 |
ok了,谢谢 |
fix #305
fix ant-design/ant-design#29991