Skip to content

Commit

Permalink
fix(vue): fix swiperRef for Vue swiperSlide (#5994)
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Kisielewski <[email protected]>
  • Loading branch information
dawidreedsy and Dawidpol authored Sep 6, 2022
1 parent b80352a commit a2bcbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vue/swiper-slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SwiperSlide = {
}

onMounted(() => {
if (!swiperRef.value) return;
if (!swiperRef || !swiperRef.value) return;
swiperRef.value.on('_slideClass', updateClasses);
eventAttached = true;
});
Expand Down

0 comments on commit a2bcbb1

Please sign in to comment.