Answer the question
In order to leave comments, you need to log in
How to hang a vue event?
I'm writing a site on vue.js, I can't hang the @click event on the "yes" - "no" buttons (and generally does not work on any element of the table tag)
what could be the reason?
component code https://github.com/weraleto/new/blob/master/1.vue
demo can be viewed here weraleto.ru/quiz
(questionnaire stage 3)
Answer the question
In order to leave comments, you need to log in
I guess this is because you don't pass a function as a handler. And just call this function.
// Ошибка
@click="$emit('onminus')"
// Правильно
@click="() => $emit('onminus')"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question