[Vuejs]-Is there a way to programmatically trigger a VueJS element with .native using $refs?

0👍

What I understand is you want to open a file right?
Try this

<input type="file" ref="file" style="display: none">
<v-button @click="$refs.file.click()">Button to open the file</v-button>

And with the ref in js use as this.$ref.file and get your file you uploded
To clear the reference this.$ref.value=””

Leave a comment