I'm trying to open a selection of files, but through passing prop to component (I need this for convenience). Is there a way to do this?
https://codepen.io/iliyazelenko/pen/RBejRV?editors=1010
Variant in code below does not suit me:
<input type="file" ref="input" hidden>
<button @click="() => { $refs.input.click() }">Choose file</button>
Why does it click but does not open file selection?
this.$refs.input.addEventListener('click', e => {
console.log('clicked: ', e.target)
})