From fbceeb79bc9326fc7f41a2371bf4be0611decf87 Mon Sep 17 00:00:00 2001 From: Faran Javed Date: Thu, 25 Sep 2025 17:57:34 +0500 Subject: [PATCH] [Fix]: #2011 setDefaultValue duplication --- .../src/comps/comps/numberInputComp/numberInputComp.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx b/client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx index 15db21305..baf265122 100644 --- a/client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx @@ -293,7 +293,7 @@ const childrenMap = { viewRef: RefControl, style: styleControl(InputFieldStyle , 'style') , labelStyle: styleControl(LabelStyle , 'labelStyle'), - prefixText : stringExposingStateControl("defaultValue"), + prefixText: StringControl, animationStyle: styleControl(AnimationStyle , 'animationStyle'), prefixIcon: IconControl, inputFieldStyle: styleControl(InputLikeStyle , 'inputFieldStyle'), @@ -415,7 +415,7 @@ const CustomInputNumber = (props: RecordConstructorToView) = precision={props.precision} $style={props.inputFieldStyle} $disabledStyle={props.disabledStyle} - prefix={hasIcon(props.prefixIcon) ? props.prefixIcon : props.prefixText.value} + prefix={hasIcon(props.prefixIcon) ? props.prefixIcon : props.prefixText} tabIndex={typeof props.tabIndex === 'number' ? props.tabIndex : undefined} onPressEnter={() => { handleFinish();