D
D
danilr2019-05-08 10:48:03
Vue.js
danilr, 2019-05-08 10:48:03

Why is the Vue @mouseover event not firing?

You need to hang an event handler on hovering over an element, but for some reason @mouseover does not work. But if you write purely js onmouseover="console.log('1')" then it works. Where is the mistake?

<Layout
          v-for="(residential, index) in filtredRC.slice(0, lazyResidentials)"
          :key="index"
          :price="residential.price_min"
          :name="residential.title"
          @click="handlerLayout(index, residential.id)"
          onmouseover="console.log('1')"
        ></Layout>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dima Pautov, 2019-05-08
@bootd

well, because for the event you need to specify the @ symbol at the beginning, like for a click

P
Pavel, 2017-04-17
@PavelMonro

Now come running Nostradamus

M
Maxim Timofeev, 2017-04-17
@webinar

Two conditions are triggered when the screen is resized
can not be
Literally every pixel triggers a condition.
What language is this? What pixels and how do you work. What is it????

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question