Fixes select2 bug from RegEx escaped values#1677
Conversation
Escaped values are needed for tablesorter filter, but unescaped values should be used in other contexts. (e.g., "a or b", "a/b")
|
Hi @cwisdo! Thanks for your contribution! From my quick look at the code, it doesn't appear to work any differently from before. The variable |
|
Here is a fiddle which illustrates the problem. If you select A/B in the select2 filter for Name column, it will filter, but will not populate the select2 as a selected value Here it is with the fix implemented. You can select (and then deselect) A/B The diff doesn't really show what's going on. The key is in the code that was not changed (i.e., the original I.e., $cell.find(".select2").select2("val", v);
// update sticky header cell
if (c.widgetOptions.$sticky) {
c.widgetOptions.$sticky
.find(".select2col" + indx + " .select2")
.select2("val", v);
} |
|
Thanks again! Sorry for taking so long to get this merged! |
Escaped values are needed for tablesorter filter, but unescaped values should be used in other contexts. (e.g., "a or b", "a/b")