Closed OliverJEvans closed 2 years ago
Same behaviour on Windows 10 in Chrome.
Same thing when an a
tag is wrapped inside <Slide>
@Naresh-Khatri We can not prevent links/buttons from being clicked at all, however after daring it will prevent the click event from being handled.
This is the same example with the latest carousel version 0.1.40
It was a fault on my end I got it working now but there's still a problem.
When I try to drag a slide having an <a>
tag with href
attr it starts dragging the link and not the actual slide as shown.
I fixed that by adding draggable='false'
to <a>
but now it opens up the link when dragging is done.
@Naresh-Khatri This should be fixed in the latest version
Hey there @ismail9k @Naresh-Khatri , how did you solve this? I have something like this but its opening the link every time I drag on desktop
<Slide v-for="post in posts" :key="post.id" class="px-4">
<a :href="post.permalink" target="_blank" draggable="false">
<img :src="post.media_url" class="w-full h-[385px] object-cover" />
</a>
</Slide>
@franco-onevillas It was fixed right after when I posted it, BTW I have been using another carousel (Splide) these days and that doesn't have this problem by default.
@Naresh-Khatri thank you so much, looks promising! cheers
I was able to solve the link-clicking issue by converting my <a href="..">
into buttons instead.
Describe the bug
To Reproduce https://codesandbox.io/s/thirsty-mestorf-sjhtqt?file=/src/App.vue
Expected behavior
Screenshots
Desktop (please complete the following information):