[bugfix] Stepper: wrong value when input is empty and min is zero (#2470)

This commit is contained in:
neverland
2019-01-08 22:04:02 +08:00
committed by GitHub
parent cfb81f7094
commit 44ef986feb

View File

@@ -132,6 +132,11 @@ export default create({
onBlur(event) {
this.currentValue = this.range(this.currentValue);
this.$emit('blur', event);
// fix edge case when input is empty and min is 0
if (this.currentValue === 0) {
event.target.value = this.currentValue;
}
}
}
});