Browse Source

Allow text labeled dropdowns to continue to search after max selections

pull/2710/head
jlukic 9 years ago
parent
commit
3b952c34d2
1 changed files with 3 additions and 3 deletions
  1. 6
      src/definitions/modules/dropdown.js

6
src/definitions/modules/dropdown.js

@ -603,7 +603,7 @@ $.fn.dropdown = function(parameters) {
}
}
;
if(module.has.maxSelections()) {
if(settings.useLabels && module.has.maxSelections()) {
return;
}
if(settings.apiSettings) {
@ -1684,8 +1684,8 @@ $.fn.dropdown = function(parameters) {
module.debug('Maximum selection count reached');
if(settings.useLabels) {
$item.addClass(className.filtered);
module.add.message(message.maxSelections);
}
module.add.message(message.maxSelections);
return true;
}
else {
@ -2311,7 +2311,7 @@ $.fn.dropdown = function(parameters) {
hasUserSuggestion = $addition.length > 0,
html
;
if(module.has.maxSelections()) {
if(settings.useLabels && module.has.maxSelections()) {
return;
}
if(value === '' || alreadyHasValue) {

Loading…
Cancel
Save