mol_plot_all 1.2.1803 → 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/node.js
CHANGED
|
@@ -3247,14 +3247,14 @@ var $;
|
|
|
3247
3247
|
class $mol_view_selection extends $mol_object {
|
|
3248
3248
|
static focused(next, notify) {
|
|
3249
3249
|
const parents = [];
|
|
3250
|
-
let element = next?.[0] ?? $
|
|
3250
|
+
let element = next?.[0] ?? $mol_dom.document.activeElement;
|
|
3251
3251
|
while (element?.shadowRoot) {
|
|
3252
3252
|
element = element.shadowRoot.activeElement;
|
|
3253
3253
|
}
|
|
3254
3254
|
while (element) {
|
|
3255
3255
|
parents.push(element);
|
|
3256
3256
|
const parent = element.parentNode;
|
|
3257
|
-
if (parent instanceof ShadowRoot)
|
|
3257
|
+
if (parent instanceof $mol_dom.ShadowRoot)
|
|
3258
3258
|
element = parent.host;
|
|
3259
3259
|
else
|
|
3260
3260
|
element = parent;
|
|
@@ -3266,7 +3266,7 @@ var $;
|
|
|
3266
3266
|
if (element)
|
|
3267
3267
|
element.focus();
|
|
3268
3268
|
else
|
|
3269
|
-
$
|
|
3269
|
+
$mol_dom.blur();
|
|
3270
3270
|
});
|
|
3271
3271
|
return parents;
|
|
3272
3272
|
}
|