Skip to content

Commit

Permalink
Merge pull request #2573 from davialexandre/fix_remote_select_dropdown
Browse files Browse the repository at this point in the history
Properly set the dropdown value when dealing with remote loaded choices
  • Loading branch information
jlukic committed Jul 10, 2015
2 parents 616c99c + 58b4046 commit f17f11e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,12 @@ $.fn.dropdown = function(parameters) {
return;
}
}

if($input.is('select') && settings.apiSettings) {
module.debug('Adding an option to the select before setting the value', value);
module.add.optionValue(value);
}

module.debug('Updating input value', value, currentValue);
$input
.val(value)
Expand Down

0 comments on commit f17f11e

Please sign in to comment.