From 3ddc651f9924066819f79b8045d1af2a7ae6c81f Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 11 Jun 2024 15:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/INumericInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Components/INumericInput.tsx b/src/UI/Components/INumericInput.tsx index 7734dac44..759251d03 100644 --- a/src/UI/Components/INumericInput.tsx +++ b/src/UI/Components/INumericInput.tsx @@ -83,7 +83,8 @@ export class INumericInput extends React.Component return; } this._Value = parseFloat(FixedNotZero(num, this._Float)); - this.props.onValueChange(num, value, e); + if (this.props.onValueChange) + this.props.onValueChange(num, value, e); this._isPopoverOpen = false; }} onFocus={(e) =>