Skip to content

Commit 679bc85

Browse files
authored
Merge pull request #156 from tj-shapeways/fix-keyboard-nav-#154
Fix keyboard navigation for opt group options (#154)
2 parents 2cbffd9 + 368b40f commit 679bc85

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public/jquery.selectric.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* /,'
1010
* /'
1111
*
12-
* Selectric ϟ v1.11.0 (Nov 20 2016) - http://lcdsantos.github.io/jQuery-Selectric/
12+
* Selectric ϟ v1.11.0 (Dec 15 2016) - http://lcdsantos.github.io/jQuery-Selectric/
1313
*
1414
* Copyright (c) 2016 Leonardo Santos; MIT License
1515
*
@@ -699,11 +699,11 @@
699699
}
700700

701701
if ( isPrevKey ) {
702-
goToItem = _this.utils.previousEnabledItem(_this.items, idx);
702+
goToItem = _this.utils.previousEnabledItem(_this.lookupItems, idx);
703703
}
704704

705705
if ( isNextKey ) {
706-
goToItem = _this.utils.nextEnabledItem(_this.items, idx);
706+
goToItem = _this.utils.nextEnabledItem(_this.lookupItems, idx);
707707
}
708708

709709
_this.highlight(goToItem);

src/jquery.selectric.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@
682682
}
683683

684684
if ( isPrevKey ) {
685-
goToItem = _this.utils.previousEnabledItem(_this.items, idx);
685+
goToItem = _this.utils.previousEnabledItem(_this.lookupItems, idx);
686686
}
687687

688688
if ( isNextKey ) {
689-
goToItem = _this.utils.nextEnabledItem(_this.items, idx);
689+
goToItem = _this.utils.nextEnabledItem(_this.lookupItems, idx);
690690
}
691691

692692
_this.highlight(goToItem);

0 commit comments

Comments
 (0)