vendor/assets/js/foundation.orbit.js.es6 in foundation-rails-6.2.0.1 vs vendor/assets/js/foundation.orbit.js.es6 in foundation-rails-6.2.1.0
- old
+ new
@@ -198,10 +198,11 @@
if (this.options.navButtons) {
var $controls = this.$element.find(`.${this.options.nextClass}, .${this.options.prevClass}`);
$controls.attr('tabindex', 0)
//also need to handle enter/return and spacebar key presses
- .on('click.zf.orbit touchend.zf.orbit', function(){
+ .on('click.zf.orbit touchend.zf.orbit', function(e){
+ e.preventDefault();
_this.changeSlide($(this).hasClass(_this.options.nextClass));
});
}
if (this.options.bullets) {