Browse Source

#2313, remove value does not check selection count #2313

pull/2308/merge
jlukic 9 years ago
parent
commit
aadeb1d437
1 changed files with 2 additions and 0 deletions
  1. 2
      src/definitions/modules/dropdown.js

2
src/definitions/modules/dropdown.js

@ -2330,6 +2330,7 @@ $.fn.dropdown = function(parameters) {
settings.onRemove.call(element, removedValue, removedText, $removedItem); settings.onRemove.call(element, removedValue, removedText, $removedItem);
} }
module.set.value(newValue, removedText, $removedItem); module.set.value(newValue, removedText, $removedItem);
module.check.maxSelections();
}, },
arrayValue: function(removedValue, values) { arrayValue: function(removedValue, values) {
values = $.grep(values, function(value){ values = $.grep(values, function(value){
@ -2378,6 +2379,7 @@ $.fn.dropdown = function(parameters) {
module.remove.label(value); module.remove.label(value);
} }
else { else {
// selected will also remove label
module.remove.selected(value); module.remove.selected(value);
} }
}) })

Loading…
Cancel
Save