ok <- (null.ok && test_null(x)) || test_class(x, "shiny.tag")
43
-
13x
+
15x
if (!ok) {
@@ -30372,7 +30372,7 @@
teal.modules.hermes coverage - 26.54%
46
-
12x
+
14x
return(TRUE)
diff --git a/main/coverage-report/lib/datatables-binding-0.28/datatables.js b/main/coverage-report/lib/datatables-binding-0.30/datatables.js
similarity index 99%
rename from main/coverage-report/lib/datatables-binding-0.28/datatables.js
rename to main/coverage-report/lib/datatables-binding-0.30/datatables.js
index aee8ab54..d968d8be 100644
--- a/main/coverage-report/lib/datatables-binding-0.28/datatables.js
+++ b/main/coverage-report/lib/datatables-binding-0.30/datatables.js
@@ -2,7 +2,7 @@
// some helper functions: using a global object DTWidget so that it can be used
// in JS() code, e.g. datatable(options = list(foo = JS('code'))); unlike R's
-// dynamic scoping, when 'code' is eval()'ed, JavaScript does not know objects
+// dynamic scoping, when 'code' is eval'ed, JavaScript does not know objects
// from the "parent frame", e.g. JS('DTWidget') will not work unless it was made
// a global object
var DTWidget = {};
@@ -493,7 +493,9 @@ HTMLWidgets.widget({
$input.parent().hide(); $x.show().trigger('show'); filter[0].selectize.focus();
},
input: function() {
- if ($input.val() === '') filter[0].selectize.setValue([]);
+ var v1 = JSON.stringify(filter[0].selectize.getValue()), v2 = $input.val();
+ if (v1 === '[]') v1 = '';
+ if (v1 !== v2) filter[0].selectize.setValue(v2 === '' ? [] : JSON.parse(v2));
}
});
var $input2 = $x.children('select');
@@ -1398,7 +1400,7 @@ HTMLWidgets.widget({
console.log('The search keyword for column ' + i + ' is undefined')
return;
}
- $(td).find('input').first().val(v);
+ $(td).find('input').first().val(v).trigger('input');
searchColumn(i, v);
});
table.draw();