Static GitHub Issues

[1686] <nuxt-link /> doesn't support click events

prev: Middleware arguments
next: Access VUEX store inside of LAYOUT files

I discovered that <nuxt-link /> doesn't delegate click events to an anchor like one would expect. I wrote this fully expecting it to work:

<nuxt-link @click="closeMenu" to="/register">Register</nuxt-link>

However, no click event is fired when clicking the link. Normally what I do with components that essentially shadow an element like <a /> is capture and raise events to the parent component. Vue.js makes this fairly straightforward.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1509">#c1509</a>)</em></sub></div>