Click on a disabled Jquery UI Slider goes to top of page -
Click on a disabled Jquery UI Slider goes to top of page -
when click on jquery ui slider disabled , page has been scrolled down, page goes top.
this happening because slider widget implemented anchor tag containing href of #.
this hack solution.
$(".ui-slider-disabled").on("click", ".ui-slider-handle", function () {return false;});
it works but, there native (api) way stop this?
how (you may need alter class, depending on how set up)
$(".ui-slider").click(function(e){ e.stoppropagation() });
jquery-ui
Comments
Post a Comment