Skip to content

Commit

Permalink
fix #30. check value of selectOption by check it type.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordfriend committed Dec 5, 2014
1 parent 7597e31 commit 635d17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nya-bs-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', functio

value = getOptionValue(nyaBsOption);

if(value) {
if(typeof value !== 'undefined') {
if(isMultiple) {
// make a deep copy enforce ngModelController to call its $render method.
// See: https://github.com/angular/angular.js/issues/1751
Expand Down

0 comments on commit 635d17b

Please sign in to comment.