Answer the question
In order to leave comments, you need to log in
How to cancel parent event on click on child element with own event?
There are slides
<div
class="slider__slide js-slide pad-6"
v-for="slide in sliderList"
:key="slide.id"
:style="'background-image: url(' + slide.img + ')'"
@click="openSlide(slide.id + 1)"
>
<div
class="slide-content"
>
<h1>{{ slide.title }}</h1>
<p class="mar-bot-6">
{{ slide.text }}
</p>
<span class="badge-course pad-3 d-inline-block"
>
{{ slide.badge }}
</span>
<div class="mar-top-8">
<button class="btn btn-primary btn-course" @click="joinCourse">
Записаться на курс
</button>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question