Skip to content

Commit 67fe6ce

Browse files
committed
update docs
1 parent 62ff2d1 commit 67fe6ce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/dist/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @lordfriend/nya-bootstrap-select v2.2.0
2+
* @lordfriend/nya-bootstrap-select v2.3.0
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/

docs/dist/css/nya-bs-select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @lordfriend/nya-bootstrap-select v2.2.0
2+
* @lordfriend/nya-bootstrap-select v2.3.0
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/

docs/dist/js/nya-bs-select.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @lordfriend/nya-bootstrap-select v2.2.0
2+
* @lordfriend/nya-bootstrap-select v2.3.0
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/
@@ -850,7 +850,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi
850850
bsOptionElements = dropdownMenu.children(),
851851
length = bsOptionElements.length,
852852
value;
853-
if(typeof modelValue === 'undefined') {
853+
if(typeof modelValue === 'undefined' || modelValue === null) {
854854
// if modelValue is undefined. uncheck all option
855855
for(index = 0; index < length; index++) {
856856
if(bsOptionElements.eq(index).hasClass('nya-bs-option')) {
@@ -1296,7 +1296,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi
12961296

12971297
var filterOption = jqLite(dropdownToggle[0].querySelector('.filter-option'));
12981298
var specialTitle = jqLite(dropdownToggle[0].querySelector('.special-title'));
1299-
if(typeof viewValue === 'undefined') {
1299+
if(typeof viewValue === 'undefined' || viewValue === null) {
13001300
/**
13011301
* Select empty option when model is undefined.
13021302
*/

0 commit comments

Comments
 (0)