Closed yuwu9145 closed 1 week ago
v-model emits array when initialised to undefined, but null emits single file
<template> <v-app> <v-container> <v-file-input label="File input" v-model="msg" /> </v-container> </v-app> </template> <script setup> import { ref, watch } from 'vue' const msg = ref() watch(msg, val => { console.log('isArray', Array.isArray(val)) console.log(val) }) </script>
v-model emits array when initialised to undefined, but null emits single file
Description
Markup: