mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Stepper: can not input decimal number (#1600)
This commit is contained in:
parent
02ac38fa60
commit
1d2c1db9f6
@ -48,7 +48,7 @@ VantComponent({
|
|||||||
|
|
||||||
const newValue = this.range(value);
|
const newValue = this.range(value);
|
||||||
|
|
||||||
if (typeof newValue === 'number' && value !== newValue) {
|
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
||||||
this.set({ value: newValue });
|
this.set({ value: newValue });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user