Skip to content

Commit

Permalink
fix(inputnumber): provide finalValue (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Mar 1, 2024
1 parent 6e40c53 commit 3381547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/inputnumber/inputnumber.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 1 addition & 0 deletions src/packages/inputnumber/inputnumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3381547

Please sign in to comment.