I\'m attempting to add a custom handler InlineButtonClickHandler
to a
component\'s click
event, so that I can emit
You need to add the .native modifier:
<router-link
:to="to"
@click.native="InlineButtonClickHandler"
>
{{name}}
</router-link>
This will listen to the native click event of the root element of the router-link
component.
<router-link:to="to">
<span @click="InlineButtonClickHandler">{{name}}</span>
</router-link>
Maybe you can try this.