Skip to content

Commit 1066182

Browse files
committed
Fixing focusOnSelect
1 parent 9e4ceb1 commit 1066182

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

slick/slick.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@
13741374

13751375
var _ = this;
13761376
var asNavFor = _.options.asNavFor != null ? $(_.options.asNavFor).getSlick() : null;
1377-
var index = parseInt($(event.target).closest('.slick-slide').attr("index"));
1377+
var index = parseInt($(event.target).parents('.slick-slide').attr("index"));
13781378
if(!index) index = 0;
13791379

13801380
if(_.slideCount <= _.options.slidesToShow){

0 commit comments

Comments
 (0)