Browse Source

Dropdown: In change values set selected method must receive value from item using fields.value setting

pull/6683/head
Kiran Patil 6 years ago
parent
commit
b755047b78
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/dropdown.js

4
src/definitions/modules/dropdown.js

@ -934,8 +934,8 @@ $.fn.dropdown = function(parameters) {
module.setup.menu({values: values});
$.each(values, function(index, item) {
if(item.selected == true) {
module.debug('Setting initial selection to', item.value);
module.set.selected(item.value);
module.debug('Setting initial selection to', item[fields.value]);
module.set.selected(item[fields.value]);
return true;
}
});

Loading…
Cancel
Save