Skip to content

Commit

Permalink
Ensure $select.selected exists prior to testing length.
Browse files Browse the repository at this point in the history
  • Loading branch information
sime committed Jun 5, 2015
1 parent 2d1422d commit 1edc16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uiSelectMultipleDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec

ctrl.getPlaceholder = function(){
//Refactor single?
if($select.selected.length) return;
if($select.selected && $select.selected.length) return;
return $select.placeholder;
};

Expand Down Expand Up @@ -398,4 +398,4 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec

}
};
}]);
}]);

0 comments on commit 1edc16b

Please sign in to comment.