I would like to validate if a file has been chosen using v-file-input and ValidationProvider from vee-validate.
Below is my code:
<v-flex>
<ValidationProvider rules="required" v-slot="{ errors }">
<v-file-input
show-size
accept=".xlsx"
placeholder="Click here to select your file"
label="File name"
:error="errors.length > 0"
:error-messages="errors[0]"
@change="selectFile"
>
</v-file-input>
</ValidationProvider>
</v-flex>
Somehow the validation works but it works too well even after I have chosen a file:
I am not sure what I have done wrong?