Browse Source

Clean up spacing #1627

pull/1629/merge
jlukic 10 years ago
parent
commit
00b9b9d4a3
1 changed files with 5 additions and 6 deletions
  1. 11
      src/definitions/modules/dropdown.js

11
src/definitions/modules/dropdown.js

@ -908,14 +908,13 @@ $.fn.dropdown = function(parameters) {
;
if(defaultValue !== undefined) {
module.debug('Restoring default value', defaultValue);
if (defaultValue.length) {
module.set.selected(defaultValue);
module.set.value(defaultValue);
if(defaultValue.length) {
module.set.selected(defaultValue);
module.set.value(defaultValue);
}
else {
module.remove.activeItem();
module.remove.selectedItem();
module.remove.activeItem();
module.remove.selectedItem();
}
}
}

Loading…
Cancel
Save