SSENSE / vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js
https://ssense.github.io/vue-carousel/
MIT License
1.72k stars 504 forks source link

inner element stop bubble ,but it still bubble? #495

Open moahmn opened 4 years ago

moahmn commented 4 years ago

Bug Report

Current Behavior click the inner element,then will call two function, inner function and wrapper function will all execute

Input Code and steps to reproduce

https://jsfiddle.net/2jcL438o/

Expected behavior/code

when i click outer box,then fn1 function will be execute,i click inner element,then fn1 and fn2 will all be execute,i hope it only execute fn2 function when i click inner element, i stop event bubble ,but is not valid?

tsyrya commented 4 years ago

I have the same problem. I need a clickable element inside the slide, but I can't separate the events.

tsyrya commented 4 years ago

@quinnlangille Could you just emit the event also, so i can understand which element is the emitter? I would be grateful.