Browse Source

#2573 Fix derp conditions of else

pull/2596/head
jlukic 9 years ago
parent
commit
4be921336a
1 changed files with 5 additions and 3 deletions
  1. 8
      src/definitions/modules/dropdown.js

8
src/definitions/modules/dropdown.js

@ -2357,9 +2357,11 @@ $.fn.dropdown = function(parameters) {
newValue = [addedValue];
}
// add values
if( $input.is('select') && (settings.allowAdditions || settings.apiSettings) ) {
module.add.optionValue(addedValue);
module.debug('Adding value to select', addedValue, newValue, $input);
if($input.is('select')) {
if(settings.allowAdditions || settings.apiSettings) {
module.debug('Adding value to select', addedValue, newValue, $input);
module.add.optionValue(addedValue);
}
}
else {
newValue = newValue.join(settings.delimiter);

Loading…
Cancel
Save