Closed Iran-110 closed 1 month ago
very annoying issue. @ismail9k could u please merge PR linked above (or better- to provide another fix, as with removing stop propagation captureClick method becomes useless) same issue - https://github.com/ismail9k/vue3-carousel/issues/222
Release vue3-carousel@0.3.3
Describe the bug If there is an anchor link (i.e. the
<a>
element) inside the<slide>
tags, the app will redirect to the new page after dragging the link, even if you haveprevented
the default!To Reproduce
~/pages/index.vue
:~/nuxt.config.ts
:Expected behavior Preventing the link from redirecting the page after dragging, because of
@click.prevent
(equivalents to@click="ev => ev.preventDefault()"
).Demo For testing, please download the project and run it on your computer.
vue3-carousel
does not work in stackblitz. https://stackblitz.com/edit/vue3-carousel-link-tester?file=README.mdDesktop: