@skyux/text-editor 7.4.1 → 7.5.0

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.
@@ -1545,8 +1545,11 @@ class SkyTextEditorComponent {
1545
1545
  });
1546
1546
  }
1547
1547
  // Autofocus isn't testable in Firefox and IE.
1548
+ // Don't set focus on the editor now if the iframe isn't initialized.
1549
+ // #initIframe() will do another check later to see if the editor should
1550
+ // receive focus.
1548
1551
  /* istanbul ignore next */
1549
- if (this.autofocus && !__classPrivateFieldGet(this, _SkyTextEditorComponent_focusInitialized, "f")) {
1552
+ if (this.autofocus && __classPrivateFieldGet(this, _SkyTextEditorComponent_initialized, "f") && !__classPrivateFieldGet(this, _SkyTextEditorComponent_focusInitialized, "f")) {
1550
1553
  __classPrivateFieldGet(this, _SkyTextEditorComponent_adapterService, "f").focusEditor();
1551
1554
  __classPrivateFieldSet(this, _SkyTextEditorComponent_focusInitialized, true, "f");
1552
1555
  }