From a3e26cf8ce5053ac790b6dcdaee7190cc39a4281 Mon Sep 17 00:00:00 2001 From: Haixing <65376724+HaixingOoO@users.noreply.github.com> Date: Mon, 27 May 2024 11:12:32 +0800 Subject: [PATCH] fix(InputNumber): fix value is undefined bug (#1802) --- js/input-number/number.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/input-number/number.ts b/js/input-number/number.ts index 7b6bfb09f2..553d13a602 100644 --- a/js/input-number/number.ts +++ b/js/input-number/number.ts @@ -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.'); }