Skip to content

Commit fbceeb7

Browse files
committed
[Fix]: #2011 setDefaultValue duplication
1 parent 79acea5 commit fbceeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ const childrenMap = {
293293
viewRef: RefControl<HTMLInputElement>,
294294
style: styleControl(InputFieldStyle , 'style') ,
295295
labelStyle: styleControl(LabelStyle , 'labelStyle'),
296-
prefixText : stringExposingStateControl("defaultValue"),
296+
prefixText: StringControl,
297297
animationStyle: styleControl(AnimationStyle , 'animationStyle'),
298298
prefixIcon: IconControl,
299299
inputFieldStyle: styleControl(InputLikeStyle , 'inputFieldStyle'),
@@ -415,7 +415,7 @@ const CustomInputNumber = (props: RecordConstructorToView<typeof childrenMap>) =
415415
precision={props.precision}
416416
$style={props.inputFieldStyle}
417417
$disabledStyle={props.disabledStyle}
418-
prefix={hasIcon(props.prefixIcon) ? props.prefixIcon : props.prefixText.value}
418+
prefix={hasIcon(props.prefixIcon) ? props.prefixIcon : props.prefixText}
419419
tabIndex={typeof props.tabIndex === 'number' ? props.tabIndex : undefined}
420420
onPressEnter={() => {
421421
handleFinish();

0 commit comments

Comments
 (0)