mol_plot_all 1.2.397 → 1.2.399

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 CHANGED
@@ -2636,9 +2636,12 @@ var $;
2636
2636
  view.dom_node().scrollIntoView({ block: align });
2637
2637
  }
2638
2638
  bring() {
2639
- new $mol_after_frame(() => {
2639
+ new this.$.$mol_after_frame(() => {
2640
2640
  this.dom_node().scrollIntoView({ inline: 'start' });
2641
- this.focused(true);
2641
+ const win = this.$.$mol_dom_context;
2642
+ if (win.parent === win.self || win.document.hasFocus()) {
2643
+ this.focused(true);
2644
+ }
2642
2645
  });
2643
2646
  }
2644
2647
  }