mol_plot_all 1.2.1336 → 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.js
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;
|