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
97c9c9b380
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}); module.setup.menu({values: values});
$.each(values, function(index, item) { $.each(values, function(index, item) {
if(item.selected == true) { if(item.selected == true) {
module.debug('Setting initial selection to', item[fields.value]);
module.set.selected(item[fields.value]);
module.debug('Setting initial selection to', String(item[fields.value]));
module.set.selected(String(item[fields.value]));
return true; return true;
} }
}); });

Loading…
Cancel
Save