Skip to content

Commit

Permalink
fix(input-number): calibration invalid for value=0 (Tencent#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
imp2002 authored and methodchen committed Aug 25, 2023
1 parent 94db49c commit 2769eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input-number/useInputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default function useInputNumber(props: TdInputNumberProps, context: Setup
const {
largeNumber, max, min, decimalPlaces,
} = props;
if (!props.allowInputOverLimit && tValue.value) {
if (!props.allowInputOverLimit && tValue.value !== undefined) {
const r = getMaxOrMinValidateResult({
value: tValue.value,
largeNumber,
Expand Down

0 comments on commit 2769eaf

Please sign in to comment.