Please take a look at my code below. My input works well, but not the v-file-input:
<v-file-input
accept=".json"
ref="loadedFile"
label="Upload file"
@change="checkJSON"
></v-file-input>
<input
type="file"
accept=".json"
@change="checkJSON"
>
methods: {
checkJSON: function(e) {
console.log("JSON checking")
console.log(JSON.stringify(e))
console.log(e.target.files)
return
}
}
The console shows the file for the input, but here is the message I get for the v-file-input:
[Vue warn]: Error in v-on handler: "TypeError: e.target is undefined"
Is that normal? I'd like to use the vuetify component, it's prettier. Thanks in advance.