Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae2422c

Browse files
Merge pull request#2016 from iamfaran/fix/2011-number-input
[Fix]:#2011 setDefaultValue duplication
2 parents1cee6ff +fbceeb7 commitae2422c

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'),
@@ -414,7 +414,7 @@ const CustomInputNumber = (props: RecordConstructorToView<typeof childrenMap>) =
414414
precision={props.precision}
415415
$style={props.inputFieldStyle}
416416
$disabledStyle={props.disabledStyle}
417-
prefix={hasIcon(props.prefixIcon) ?props.prefixIcon :props.prefixText.value}
417+
prefix={hasIcon(props.prefixIcon) ?props.prefixIcon :props.prefixText}
418418
tabIndex={typeofprops.tabIndex==='number' ?props.tabIndex :undefined}
419419
onPressEnter={()=>{
420420
handleFinish();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp