Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit bb96d7c

Browse files
committed
Merge pull request #1115 from yadongwen/master
avoid errors when $select.selected is null
2 parents 271bf6a + 3a8c50a commit bb96d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/uiSelectMultipleDirective.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
5656

5757
ctrl.getPlaceholder = function(){
5858
//Refactor single?
59-
if($select.selected.length) return;
59+
if($select.selected && $select.selected.length) return;
6060
return $select.placeholder;
6161
};
6262

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

399399
}
400400
};
401-
}]);
401+
}]);

0 commit comments

Comments
 (0)