Skip to content

Commit

Permalink
#2573 Fix derp conditions of else
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jul 10, 2015
1 parent e61b39c commit 4be9213
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4be9213

Please sign in to comment.