@firestitch/common 12.6.1 → 12.6.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.
@@ -795,12 +795,22 @@
795
795
  FsAutofocusDirective.prototype.focus = function () {
796
796
  var _this = this;
797
797
  setTimeout(function () {
798
+ var tmpEl = document.createElement('input');
799
+ tmpEl.style.width = '0';
800
+ tmpEl.style.height = '0';
801
+ tmpEl.style.margin = '0';
802
+ tmpEl.style.padding = '0';
803
+ tmpEl.style.border = '0';
804
+ tmpEl.style.opacity = '0';
805
+ document.body.appendChild(tmpEl);
806
+ tmpEl.focus();
798
807
  if (_this._matInput) {
799
808
  _this._matInput.focus();
800
809
  }
801
810
  else if (_this._el.nativeElement.focus) {
802
811
  _this._el.nativeElement.focus();
803
812
  }
813
+ document.body.removeChild(tmpEl);
804
814
  }, 50);
805
815
  };
806
816
  return FsAutofocusDirective;