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) => {