mol_view_tree2_lib 1.0.297 → 1.0.299
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.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +3 -3
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -9646,14 +9646,14 @@ var $;
|
|
|
9646
9646
|
class $mol_view_selection extends $mol_object {
|
|
9647
9647
|
static focused(next, notify) {
|
|
9648
9648
|
const parents = [];
|
|
9649
|
-
let element = next?.[0] ?? $
|
|
9649
|
+
let element = next?.[0] ?? $mol_dom.document.activeElement;
|
|
9650
9650
|
while (element?.shadowRoot) {
|
|
9651
9651
|
element = element.shadowRoot.activeElement;
|
|
9652
9652
|
}
|
|
9653
9653
|
while (element) {
|
|
9654
9654
|
parents.push(element);
|
|
9655
9655
|
const parent = element.parentNode;
|
|
9656
|
-
if (parent instanceof ShadowRoot)
|
|
9656
|
+
if (parent instanceof $mol_dom.ShadowRoot)
|
|
9657
9657
|
element = parent.host;
|
|
9658
9658
|
else
|
|
9659
9659
|
element = parent;
|
|
@@ -9665,7 +9665,7 @@ var $;
|
|
|
9665
9665
|
if (element)
|
|
9666
9666
|
element.focus();
|
|
9667
9667
|
else
|
|
9668
|
-
$
|
|
9668
|
+
$mol_dom.blur();
|
|
9669
9669
|
});
|
|
9670
9670
|
return parents;
|
|
9671
9671
|
}
|