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

Commitd5ecf89

Browse files
committed
CFormInput modelValue = 0 (number) handled correctly
1 parentb85adb2 commitd5ecf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/coreui-vue/src/components/form/CFormInput.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const CFormInput = defineComponent({
188188
onInput:(event:InputEvent)=>handleInput(event),
189189
readonly:props.readonly,
190190
type:props.type,
191-
...(props.modelValue&&{value:props.modelValue}),
191+
...((props.modelValue||props.modelValue===0)&&{value:props.modelValue})
192192
},
193193
slots.default&&slots.default(),
194194
),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp