mol_plot_all 1.2.1804 → 1.2.1805
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 +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -3
- package/web.js.map +1 -1
- package/web.mjs +3 -3
package/web.js
CHANGED
|
@@ -2417,14 +2417,14 @@ var $;
|
|
|
2417
2417
|
class $mol_view_selection extends $mol_object {
|
|
2418
2418
|
static focused(next, notify) {
|
|
2419
2419
|
const parents = [];
|
|
2420
|
-
let element = next?.[0] ?? $
|
|
2420
|
+
let element = next?.[0] ?? $mol_dom.document.activeElement;
|
|
2421
2421
|
while (element?.shadowRoot) {
|
|
2422
2422
|
element = element.shadowRoot.activeElement;
|
|
2423
2423
|
}
|
|
2424
2424
|
while (element) {
|
|
2425
2425
|
parents.push(element);
|
|
2426
2426
|
const parent = element.parentNode;
|
|
2427
|
-
if (parent instanceof ShadowRoot)
|
|
2427
|
+
if (parent instanceof $mol_dom.ShadowRoot)
|
|
2428
2428
|
element = parent.host;
|
|
2429
2429
|
else
|
|
2430
2430
|
element = parent;
|
|
@@ -2436,7 +2436,7 @@ var $;
|
|
|
2436
2436
|
if (element)
|
|
2437
2437
|
element.focus();
|
|
2438
2438
|
else
|
|
2439
|
-
$
|
|
2439
|
+
$mol_dom.blur();
|
|
2440
2440
|
});
|
|
2441
2441
|
return parents;
|
|
2442
2442
|
}
|