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.js CHANGED
@@ -2644,9 +2644,12 @@ var $;
2644
2644
  view.dom_node().scrollIntoView({ block: align });
2645
2645
  }
2646
2646
  bring() {
2647
- new $mol_after_frame(() => {
2647
+ new this.$.$mol_after_frame(() => {
2648
2648
  this.dom_node().scrollIntoView({ inline: 'start' });
2649
- this.focused(true);
2649
+ const win = this.$.$mol_dom_context;
2650
+ if (win.parent === win.self || win.document.hasFocus()) {
2651
+ this.focused(true);
2652
+ }
2650
2653
  });
2651
2654
  }
2652
2655
  }