diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 862685f098..8aec5b70fc 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -745,7 +745,11 @@ $.fn.dropdown = function(parameters) { if(settings.filterRemoteData) { module.filterItems(searchTerm); } - $.each($input.val(),function(index,value){ + var preSelected = $input.val(); + if(!Array.isArray(preSelected)) { + preSelected = preSelected!=="" ? preSelected.split(settings.delimiter) : []; + } + $.each(preSelected,function(index,value){ $item.filter('[data-value="'+value+'"]') .addClass(className.filtered) ;