diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index d71ca10..c251429 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -88,6 +88,11 @@ } var selectedValues = ms.find('option:selected').map(function(){ return $(this).val(); }).get(); + + // Make sure to deselected all previously selected item (if any) + // before selecting items that should be selected indeed. + that.deselect_all(); + that.select(selectedValues, 'init'); if (typeof that.options.afterInit === 'function') {