Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
when focusOnChange is false -> remove attr tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrubotez committed Sep 14, 2017
1 parent 34612b4 commit eb67d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,11 @@
}

for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {
_.$slides.eq(i).attr('tabindex', 0);
if (_.options.focusOnChange) {
_.$slides.eq(i).attr({'tabindex': '0'});
} else {
_.$slides.eq(i).removeAttr('tabindex');
}
}

_.activateADA();
Expand Down

0 comments on commit eb67d9e

Please sign in to comment.