I'm trying to override the default file browser dialog with a custom function when the user clicks on the file selection dialog as shown below in Bootstrap-Vue.
The code is
<b-form-file
v-on:click.prevent
v-model="file"
:state="Boolean(file)"
placeholder="Choose a file or drop it here..."
drop-placeholder="Drop file here..."
></b-form-file>
I tried adding v-on:click.prevent, and @click="function (e) {e.preventdefault()}" but those don't work for me.

v-on:click.native.prevent, since<b-form-file>is a component, you need to tell it to listen to a native browser event.<div>wrapper, you may want to add on the.capturemodifier to trap the event before it reaches the inputalert("hello world"))? I tried adding@click='alert("hello world")'but I'm only able to get that to work when added to a div wrapped around the <b-form-file> tagv-on:click.native.prevent="alert('Hello World'}"