From b5b780c25d6e317fc3f511742dbdb05306595319 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Thu, 18 Jan 2018 17:20:04 -0600 Subject: [PATCH] Filter: Fix select2 issue. Closes #1497 --- js/widgets/widget-filter-formatter-select2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/widgets/widget-filter-formatter-select2.js b/js/widgets/widget-filter-formatter-select2.js index e1eeee0d..e04fb756 100644 --- a/js/widgets/widget-filter-formatter-select2.js +++ b/js/widgets/widget-filter-formatter-select2.js @@ -70,7 +70,7 @@ if (arry) { v = v.split('\u0000'); } - if (!ts.isEmptyObject($input.find('.select2').data())) { + if (!ts.isEmptyObject($cell.find('.select2').data())) { $input // add regex, so we filter exact numbers .val( @@ -78,8 +78,8 @@ '/(' + matchPrefix + (v || []).join(matchSuffix + '|' + matchPrefix) + matchSuffix + ')/' + flags : '' ) - .trigger('search').end() - .find('.select2').select2('val', v); + .trigger('search'); + $cell.find('.select2').select2('val', v); // update sticky header cell if (c.widgetOptions.$sticky) { c.widgetOptions.$sticky.find('.select2col' + indx + ' .select2').select2('val', v);