Skip to content

Commit 7585a6e

Browse files
committed
* Revert "Bug fix - Search input isn't blocked (angular-ui#1822)" Many problems with this change. Reverted it for this reason. This reverts commit 0d81493. * cleaning up comments
1 parent 9771fc3 commit 7585a6e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/uiSelectController.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ uis.controller('uiSelectCtrl',
383383
ctrl.select = function(item, skipFocusser, $event) {
384384
if (item === undefined || !_isItemDisabled(item)) {
385385

386-
if ( (!ctrl.items || !ctrl.items.length) && ! ctrl.search && ! ctrl.tagging.isActivated) return;
386+
if ( ! ctrl.items && ! ctrl.search && ! ctrl.tagging.isActivated) return;
387387

388388
if (!item || !_isItemDisabled(item)) {
389389
// if click is made on existing item, prevent from tagging, ctrl.search does not matter
@@ -614,11 +614,6 @@ uis.controller('uiSelectCtrl',
614614
e.stopPropagation();
615615
}
616616

617-
// if(~[KEY.ESC,KEY.TAB].indexOf(key)){
618-
// //TODO: SEGURO?
619-
// ctrl.close();
620-
// }
621-
622617
$scope.$apply(function() {
623618

624619
var tagged = false;
@@ -648,9 +643,6 @@ uis.controller('uiSelectCtrl',
648643
});
649644
}
650645
}
651-
}else{
652-
e.preventDefault();
653-
e.stopPropagation();
654646
}
655647

656648
});

0 commit comments

Comments
 (0)