From 3381547d010347d9ccd20f9c032e2455f7b134fb Mon Sep 17 00:00:00 2001 From: oasis <12181600+oasis-cloud@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:03:21 +0800 Subject: [PATCH] fix(inputnumber): provide finalValue (#1959) --- src/packages/inputnumber/inputnumber.taro.tsx | 1 + src/packages/inputnumber/inputnumber.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/packages/inputnumber/inputnumber.taro.tsx b/src/packages/inputnumber/inputnumber.taro.tsx index 0d6df3b33d..129db3ae39 100644 --- a/src/packages/inputnumber/inputnumber.taro.tsx +++ b/src/packages/inputnumber/inputnumber.taro.tsx @@ -97,6 +97,7 @@ export const InputNumber: FunctionComponent< typeof defaultValue === 'string' ? parseFloat(defaultValue) : defaultValue, + finalValue: 0, onChange: (value) => {}, }) const bound = (value: number, min: number, max: number) => { diff --git a/src/packages/inputnumber/inputnumber.tsx b/src/packages/inputnumber/inputnumber.tsx index 97d7c2c98d..c1b5b5ef17 100644 --- a/src/packages/inputnumber/inputnumber.tsx +++ b/src/packages/inputnumber/inputnumber.tsx @@ -93,6 +93,7 @@ export const InputNumber: FunctionComponent< typeof defaultValue === 'string' ? parseFloat(defaultValue) : defaultValue, + finalValue: 0, onChange: (value) => {}, }) const bound = (value: number, min: number, max: number) => {