From aadeb1d437cfe48034915ecde53a9a5f083ab128 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 28 May 2015 15:35:01 -0400 Subject: [PATCH] #2313, remove value does not check selection count #2313 --- src/definitions/modules/dropdown.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 00608e5b4..247d7f789 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -2330,6 +2330,7 @@ $.fn.dropdown = function(parameters) { settings.onRemove.call(element, removedValue, removedText, $removedItem); } module.set.value(newValue, removedText, $removedItem); + module.check.maxSelections(); }, arrayValue: function(removedValue, values) { values = $.grep(values, function(value){ @@ -2378,6 +2379,7 @@ $.fn.dropdown = function(parameters) { module.remove.label(value); } else { + // selected will also remove label module.remove.selected(value); } })