seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

Slider do not process the click to preventDefault behavior. #942

Open ralfonsoreyes opened 4 years ago

ralfonsoreyes commented 4 years ago

When we use the slide inside an anchor, I will subscribe to the slide, slideStop and SlideStart event but I cannot make work the preventDefault and the anchor still receive the initial click. My current solution is: this.bindings.on("click", ".slider", function (e) { e.preventDefault(); }) I do not know if this the normal behavior of the slider, but I believe that in most cases it will be good to have a property in construction to specify the events that we want to prevent or stop.