mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Stepper: wrong value when input is empty and min is zero (#2470)
This commit is contained in:
parent
cfb81f7094
commit
44ef986feb
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user