From 97c9c9b3803beda629ac5cdfd7dc5cf52ca66841 Mon Sep 17 00:00:00 2001 From: Kiran Patil Date: Fri, 23 Nov 2018 12:09:18 +0200 Subject: [PATCH] Dropdown: In change values set selected method must receive value from item using fields.value setting --- src/definitions/modules/dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 483a64b81..032ccb3a6 100644 --- a/src/definitions/modules/dropdown.js +++ b/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[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; } });