Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dfb953c

Browse files
committedJun 24, 2014
Merge pull request angular-ui#67 from brettbatie/master
Escape key was not being handled when no items are found in a search.
2 parents 7a5a432 + 2c5b284 commit dfb953c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ angular.module('ui.select', [])
239239
_searchInput.on('keydown', function(e) {
240240
// Keyboard shortcuts are all about the items,
241241
// does not make sense (and will crash) if ctrl.items is empty
242-
if (ctrl.items.length > 0) {
242+
if (ctrl.items && ctrl.items.length >= 0) {
243243
var key = e.which;
244244

245245
$scope.$apply(function() {

0 commit comments

Comments
 (0)
Please sign in to comment.