-
Notifications
You must be signed in to change notification settings - Fork 594
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(NumberPicker): repair numberPicker log string, close #3768 #3769
fix(NumberPicker): repair numberPicker log string, close #3768 #3769
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3769 +/- ##
=======================================
Coverage 90.58% 90.58%
=======================================
Files 303 303
Lines 17816 17818 +2
Branches 5381 5382 +1
=======================================
+ Hits 16138 16140 +2
Misses 1659 1659
Partials 19 19
Continue to review full report at Codecov.
|
应该控制 onChange 的输出必须是整数 |
numberPicker实现代码onChange有数据订正,问题所在是up down的点击 |
src/number-picker/number-picker.jsx
Outdated
@@ -184,7 +184,7 @@ class NumberPicker extends React.Component { | |||
} else { | |||
value = defaultValue; | |||
} | |||
value = value === undefined || value === null ? '' : stringMode ? `${value}` : value; | |||
value = value === undefined || value === null ? 0 : stringMode ? `${value}` : value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是输入,我们的默认值并不是0,只是点上下按钮的时候从0开始增加。
这里应该控制 onChange 的输出必须是整数
No description provided.