Skip to content

Commit ffa9e3b

Browse files
committed
CFormInput model-prop allow String and Number
For `<CFormInput type="number" v-model.number="myNumberProperty" /> a validation error will occur otherwise.
1 parent 9e53809 commit ffa9e3b

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
@@ -67,7 +67,7 @@ const CFormInput = defineComponent({
6767
* The default name for a value passed using v-model.
6868
*/
6969
modelValue: {
70-
type: String,
70+
type: [String, Number],
7171
default: undefined,
7272
},
7373
/**

0 commit comments

Comments
 (0)