@softheon/armature 10.42.0 → 10.42.2

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.
@@ -1776,7 +1776,11 @@
1776
1776
  form.method = 'POST';
1777
1777
  form.action = formAction;
1778
1778
  if (configs.targetNewTab) {
1779
- form.target = '_blank';
1779
+ // The parent session should already be present in child window as per browsing context rules, but for whatever reason form.target = '_blank' does not do that.
1780
+ // Need to use window.open here so the parent window's session also gets carried over to the new tab.
1781
+ // For reference: https://stackoverflow.com/questions/17297287/sessionstorage-on-new-window-isnt-empty-when-following-a-link-with-target-bl
1782
+ form.target = 'customWindow';
1783
+ window.open('', 'customWindow');
1780
1784
  }
1781
1785
  input.name = 'data';
1782
1786
  input.value = this.window.sessionStorage.getItem(this.sessionConfig.keyPath);
@@ -4671,6 +4675,7 @@
4671
4675
  * @param control The ng control
4672
4676
  */
4673
4677
  function SofButtonToggleGroupComponent(control) {
4678
+ var _this = this;
4674
4679
  this.control = control;
4675
4680
  /** The label text */
4676
4681
  this.labelText = '';
@@ -4706,7 +4711,9 @@
4706
4711
  this.showErrorMessage = false;
4707
4712
  if (this.control) {
4708
4713
  this.control.valueAccessor = this;
4709
- this.controlName = this.control.name;
4714
+ setTimeout(function () {
4715
+ _this.controlName = _this.control.name;
4716
+ });
4710
4717
  }
4711
4718
  }
4712
4719
  ;