@firestitch/common 12.5.4 → 12.6.1

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.
@@ -788,20 +788,20 @@
788
788
  this.fsAutofocus = true;
789
789
  }
790
790
  FsAutofocusDirective.prototype.ngAfterViewInit = function () {
791
- var _this = this;
792
- if (this.fsAutofocus !== false) {
793
- setTimeout(function () {
794
- _this.focus();
795
- }, 100);
791
+ if (this.fsAutofocus || this.fsAutofocus === undefined) {
792
+ this.focus();
796
793
  }
797
794
  };
798
795
  FsAutofocusDirective.prototype.focus = function () {
799
- if (this._matInput) {
800
- this._matInput.focus();
801
- }
802
- else if (this._el.nativeElement.focus) {
803
- this._el.nativeElement.focus();
804
- }
796
+ var _this = this;
797
+ setTimeout(function () {
798
+ if (_this._matInput) {
799
+ _this._matInput.focus();
800
+ }
801
+ else if (_this._el.nativeElement.focus) {
802
+ _this._el.nativeElement.focus();
803
+ }
804
+ }, 50);
805
805
  };
806
806
  return FsAutofocusDirective;
807
807
  }());
@@ -1466,7 +1466,7 @@
1466
1466
  }
1467
1467
 
1468
1468
  function isObject(value) {
1469
- return !!value && typeof value === 'object';
1469
+ return !!value && typeof value === 'object' && !Array.isArray(value);
1470
1470
  }
1471
1471
 
1472
1472
  function throttle(func, wait) {