Skip to content

Commit

Permalink
#2539, update text before onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jul 7, 2015
1 parent 64b087d commit 77a1257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2158,8 +2158,8 @@ $.fn.dropdown = function(parameters) {
module.select.nextAvailable($selectedItem);
}
else {
module.add.value(selectedValue, selectedText, $selected);
module.set.text(module.add.variables(message.count));
module.add.value(selectedValue, selectedText, $selected);
$selected.addClass(className.active);
}
}
Expand All @@ -2172,8 +2172,8 @@ $.fn.dropdown = function(parameters) {
if(settings.apiSettings && settings.saveRemoteData) {
module.save.remoteData(selectedText, selectedValue);
}
module.set.value(selectedValue, selectedText, $selected);
module.set.text(selectedText);
module.set.value(selectedValue, selectedText, $selected);
$selected
.addClass(className.active)
.addClass(className.selected)
Expand Down

0 comments on commit 77a1257

Please sign in to comment.