From 1d2c1db9f6af7fb0cf5cd2b100f49a298e305b93 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 5 May 2019 20:04:56 +0800 Subject: [PATCH] [bugfix] Stepper: can not input decimal number (#1600) --- packages/stepper/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stepper/index.ts b/packages/stepper/index.ts index cda56e37..5c96b722 100644 --- a/packages/stepper/index.ts +++ b/packages/stepper/index.ts @@ -48,7 +48,7 @@ VantComponent({ const newValue = this.range(value); - if (typeof newValue === 'number' && value !== newValue) { + if (typeof newValue === 'number' && +this.data.value !== newValue) { this.set({ value: newValue }); } }