flowbite-vue icon indicating copy to clipboard operation
flowbite-vue copied to clipboard

FWBInput does not support v-model.number

Open cristiano-matchday opened this issue 1 year ago • 0 comments

Hi - I'm using flowbite-vue with typescript. Whenever I use a variable that I want as a number, the v-model complains that

  node_modules/flowbite-vue/dist/components/FwbInput/FwbInput.vue.d.ts:67:5
    67     modelValue: string;
           ~~~~~~~~~~
    The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ type: InputType; label: string; disabled: boolean; size: InputSize; modelValue: string; required: boolean; validationStatus: ValidationStatus; }> & Omit<...> & Record<...>'
    ````

forcing me to use string instead. Any fix for this?

cristiano-matchday avatar Mar 02 '24 11:03 cristiano-matchday