Skip to content

Commit 20b2669

Browse files
committedJan 14, 2025·
yarn build (GitHub Actions)
1 parent db123a1 commit 20b2669

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed
 

‎inst/www/shared/shiny.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -20604,6 +20604,9 @@
2060420604
if (Array.isArray(arr))
2060520605
return arr;
2060620606
}
20607+
function isJQuery(value) {
20608+
return Object.prototype.hasOwnProperty.call(value, "jquery") && typeof value.jquery === "string";
20609+
}
2060720610
function valueChangeCallback(inputs, binding, el, allowDeferred) {
2060820611
var id = binding.getId(el);
2060920612
if (id) {
@@ -20622,6 +20625,9 @@
2062220625
var bindingsRegistry = function() {
2062320626
var bindings = /* @__PURE__ */ new Map();
2062420627
function checkValidity(scope) {
20628+
if (scope instanceof Text) {
20629+
scope = scope.parentElement || document.documentElement;
20630+
}
2062520631
var duplicateIds = /* @__PURE__ */ new Map();
2062620632
var problems = /* @__PURE__ */ new Set();
2062720633
bindings.forEach(function(idTypes, id) {
@@ -20672,7 +20678,7 @@
2067220678
headline: headline,
2067320679
message: message
2067420680
});
20675-
var scopeElement = scope instanceof HTMLElement ? scope : scope.get(0);
20681+
var scopeElement = isJQuery(scope) ? scope.get(0) : scope;
2067620682
(scopeElement || window).dispatchEvent(event);
2067720683
}
2067820684
function addBinding(id, bindingType) {

‎inst/www/shared/shiny.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎inst/www/shared/shiny.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎inst/www/shared/shiny.min.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.