M
M
marink02018-04-15 03:26:58
Vue.js
marink0, 2018-04-15 03:26:58

Why doesn't @mouseover binding work in a loop?

<nuxt-link tag="article" :to="`${element.slug}`" v-for="(element, index) in articles" class="element-item"  :key="index" @mouseover="hoverAction">

For some reason it mouseoverdoes not work on these elements.
Works on any other page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Zotov, 2018-04-15
@modelair

because you need to pass a parameter to hoverAction, otherwise, what do you want to point the mouse at?

L
lavezzi1, 2018-04-15
@lavezzi1

Everything works https://jsfiddle.net/80unpjkp/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question