Skip to content

Commit

Permalink
fix(InputNumber): fix value is undefined bug (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaixingOoO authored May 27, 2024
1 parent 59dac79 commit a3e26cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/input-number/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function getMaxOrMinValidateResult(p: {
min: NumberType;
}): InputNumberErrorType {
const { largeNumber, value, max, min } = p;
if (isUndefined(largeNumber)) return undefined;
if (isUndefined(value) || isUndefined(largeNumber)) return undefined;
if (largeNumber && isNumber(value)) {
log.warn('InputNumber', 'largeNumber value must be a string.');
}
Expand Down

0 comments on commit a3e26cf

Please sign in to comment.