mol_plot_all 1.2.1335 → 1.2.1337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.deps.json +1 -1
- package/node.js +8 -1
- package/node.js.map +1 -1
- package/node.mjs +8 -1
- package/node.test.js +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +19 -4
- package/web.js.map +1 -1
- package/web.mjs +19 -4
package/node.mjs
CHANGED
|
@@ -2331,9 +2331,16 @@ var $;
|
|
|
2331
2331
|
static focused(next, notify) {
|
|
2332
2332
|
const parents = [];
|
|
2333
2333
|
let element = next?.[0] ?? $mol_dom_context.document.activeElement;
|
|
2334
|
+
while (element?.shadowRoot) {
|
|
2335
|
+
element = element.shadowRoot.activeElement;
|
|
2336
|
+
}
|
|
2334
2337
|
while (element) {
|
|
2335
2338
|
parents.push(element);
|
|
2336
|
-
|
|
2339
|
+
const parent = element.parentNode;
|
|
2340
|
+
if (parent instanceof ShadowRoot)
|
|
2341
|
+
element = parent.host;
|
|
2342
|
+
else
|
|
2343
|
+
element = parent;
|
|
2337
2344
|
}
|
|
2338
2345
|
if (!next || notify)
|
|
2339
2346
|
return parents;
|
package/node.test.js
CHANGED
|
@@ -2322,9 +2322,16 @@ var $;
|
|
|
2322
2322
|
static focused(next, notify) {
|
|
2323
2323
|
const parents = [];
|
|
2324
2324
|
let element = next?.[0] ?? $mol_dom_context.document.activeElement;
|
|
2325
|
+
while (element?.shadowRoot) {
|
|
2326
|
+
element = element.shadowRoot.activeElement;
|
|
2327
|
+
}
|
|
2325
2328
|
while (element) {
|
|
2326
2329
|
parents.push(element);
|
|
2327
|
-
|
|
2330
|
+
const parent = element.parentNode;
|
|
2331
|
+
if (parent instanceof ShadowRoot)
|
|
2332
|
+
element = parent.host;
|
|
2333
|
+
else
|
|
2334
|
+
element = parent;
|
|
2328
2335
|
}
|
|
2329
2336
|
if (!next || notify)
|
|
2330
2337
|
return parents;
|