Skip to content

Commit

Permalink
Revert "Bug fix - Search input isn't blocked (angular-ui#1822)"
Browse files Browse the repository at this point in the history
Many problems with this change. Reverted it for this reason.
This reverts commit 0d81493.
  • Loading branch information
Jefiozie committed Oct 23, 2016
1 parent ab89b4e commit 3133048
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ uis.controller('uiSelectCtrl',
ctrl.select = function(item, skipFocusser, $event) {
if (item === undefined || !_isItemDisabled(item)) {

if ( (!ctrl.items || !ctrl.items.length) && ! ctrl.search && ! ctrl.tagging.isActivated) return;
if ( ! ctrl.items && ! ctrl.search && ! ctrl.tagging.isActivated) return;

if (!item || !_isItemDisabled(item)) {
// if click is made on existing item, prevent from tagging, ctrl.search does not matter
Expand Down Expand Up @@ -645,9 +645,6 @@ uis.controller('uiSelectCtrl',
});
}
}
}else{
e.preventDefault();
e.stopPropagation();
}

});
Expand Down

0 comments on commit 3133048

Please # to comment.