Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit c0d039b

Browse files
committed
revert: ensure highlighted before selecting on tab
This reverts commit 06bbd31.
1 parent 4e9ab7e commit c0d039b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/uiSelectController.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,7 @@ uis.controller('uiSelectCtrl',
498498
else if (ctrl.activeIndex > 0 || (ctrl.search.length === 0 && ctrl.tagging.isActivated && ctrl.activeIndex > -1)) { ctrl.activeIndex--; }
499499
break;
500500
case KEY.TAB:
501-
if ((!ctrl.multiple || ctrl.open) && ctrl.activeIndex >=0) {
502-
ctrl.select(ctrl.items[ctrl.activeIndex], true);
503-
}
501+
if (!ctrl.multiple || ctrl.open) ctrl.select(ctrl.items[ctrl.activeIndex], true);
504502
break;
505503
case KEY.ENTER:
506504
if(ctrl.open && (ctrl.tagging.isActivated || ctrl.activeIndex >= 0)){

0 commit comments

Comments
 (0)