Skip to content

Commit c2cc524

Browse files
JefiozieBogaerts Kristof
authored and
Bogaerts Kristof
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 73f2bca commit c2cc524

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
@@ -611,11 +611,6 @@ uis.controller('uiSelectCtrl',
611611
e.stopPropagation();
612612
}
613613

614-
// if(~[KEY.ESC,KEY.TAB].indexOf(key)){
615-
// //TODO: SEGURO?
616-
// ctrl.close();
617-
// }
618-
619614
$scope.$apply(function() {
620615

621616
var tagged = false;
@@ -645,9 +640,6 @@ uis.controller('uiSelectCtrl',
645640
});
646641
}
647642
}
648-
}else{
649-
e.preventDefault();
650-
e.stopPropagation();
651643
}
652644

653645
});

0 commit comments

Comments
 (0)