@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.
- package/bundles/firestitch-common.umd.js +12 -12
- package/bundles/firestitch-common.umd.js.map +1 -1
- package/esm2015/app/directives/autofocus.directive.js +11 -11
- package/esm2015/libs/util/guid/guid.js +1 -1
- package/esm2015/libs/util/is-object/is-object.js +2 -2
- package/fesm2015/firestitch-common.js +11 -11
- package/fesm2015/firestitch-common.js.map +1 -1
- package/package.json +1 -1
|
@@ -788,20 +788,20 @@
|
|
|
788
788
|
this.fsAutofocus = true;
|
|
789
789
|
}
|
|
790
790
|
FsAutofocusDirective.prototype.ngAfterViewInit = function () {
|
|
791
|
-
|
|
792
|
-
|
|
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
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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) {
|