From e6154978861571fe7ab04d1bff284694601e1154 Mon Sep 17 00:00:00 2001 From: richxrich Date: Fri, 19 Aug 2022 13:50:57 +1000 Subject: [PATCH] Fixes keepOrder --- js/jquery.multi-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index 2d70e38..b226b31 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -393,7 +393,7 @@ } }); } else { - if (that.options.keepOrder && method !== 'init'){ + if (that.options.keepOrder != true && method !== 'init'){ var selectionLiLast = that.$selectionUl.find('.ms-selected'); if((selectionLiLast.length > 1) && (selectionLiLast.last().get(0) != selections.get(0))) { selections.insertAfter(selectionLiLast.last());