Skip to content

Commit 40c2c63

Browse files
committed
Fixed a bug with model type in Input component
1 parent d718fd6 commit 40c2c63

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/FwbInput/FwbInput.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ interface InputProps {
5757
inputClass?: string | Record<string, boolean>
5858
label?: string
5959
labelClass?: string | Record<string, boolean>
60-
modelValue?: string | number
6160
required?: boolean
6261
size?: InputSize
6362
type?: InputType
@@ -76,15 +75,14 @@ const props = withDefaults(defineProps<InputProps>(), {
7675
inputClass: '',
7776
label: '',
7877
labelClass: '',
79-
modelValue: '',
8078
required: false,
8179
size: 'md',
8280
type: 'text',
8381
validationStatus: undefined,
8482
wrapperClass: '',
8583
})
8684
87-
const model = defineModel({ type: String })
85+
const model = defineModel<string | number>({ default: '' })
8886
8987
const {
9088
wrapperClass,

0 commit comments

Comments
 (0)