We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2088b commit 44b6af0Copy full SHA for 44b6af0
src/components/form/index.jsx
@@ -469,7 +469,7 @@ function getFormItemComponent(that) {
469
});
470
}
471
onChangeOrBlurEvent = (e, shouldValidate) => {
472
- const { noFormItem, type, required } = this.props;
+ const { noFormItem, type, required, min } = this.props;
473
let value;
474
if (e === undefined) {
475
value = undefined;
@@ -492,7 +492,7 @@ function getFormItemComponent(that) {
492
493
if (type === 'input-number') {
494
if ((value === '' || value === undefined) && required) {
495
- value = 0;
+ value = min || 0;
496
497
498
if (!noFormItem && shouldValidate) {
0 commit comments