As per a Nuxt 2
question on Stack Overflow, it was suggested that the following code should prevent nuxt-link
from navigating to a new page:
<nuxt-link :to="`/meet`" class="group font-normal" @click.native="event => event.preventDefault()" event="">
However, it does not work as expected. The function defined in the @click
attribute is not being executed and Nuxt still navigates to the /meet
URL.
Any suggestions on how to properly handle @click
events on a Nuxt 3 link
?