Browse Source

#2533 - Fixes issue with hideAndClear when no maxSelection

pull/2537/merge
jlukic 9 years ago
parent
commit
4514ac4089
1 changed files with 8 additions and 9 deletions
  1. 17
      src/definitions/modules/dropdown.js

17
src/definitions/modules/dropdown.js

@ -2816,18 +2816,17 @@ $.fn.dropdown = function(parameters) {
},
hideAndClear: function() {
module.remove.searchTerm();
if( module.has.maxSelections() ) {
module.remove.searchTerm();
return;
}
if(module.has.search()) {
module.hide(function() {
module.remove.filteredItem();
});
}
else {
if(module.has.search()) {
module.hide(function() {
module.remove.filteredItem();
});
}
else {
module.hide();
}
module.hide();
}
},

Loading…
Cancel
Save