herum-shared 0.1.34 → 0.1.36
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.
|
@@ -647,12 +647,15 @@ class HerumInputFieldComponent {
|
|
|
647
647
|
})).subscribe();
|
|
648
648
|
}
|
|
649
649
|
setInputsByFormControl() {
|
|
650
|
-
console.log(this.ngControl);
|
|
651
650
|
if (!this.ngControl)
|
|
652
651
|
return;
|
|
653
652
|
if (this.ngControl instanceof FormControlName)
|
|
654
653
|
this.formControlName = this.ngControl.name?.toString() || '';
|
|
655
654
|
this.ngControl.control.statusChanges.pipe(takeUntil(this.destroySubject$)).subscribe(status => {
|
|
655
|
+
console.log(Reflect.getPrototypeOf(this.ngControl.control));
|
|
656
|
+
console.log(Reflect.getPrototypeOf(this.ngControl.control) === HerumFormControl.prototype);
|
|
657
|
+
console.log(Reflect.getPrototypeOf(this.ngControl.control) === HerumFormControl);
|
|
658
|
+
console.log(this.ngControl.control.constructor.name === HerumFormControl.prototype.constructor.name);
|
|
656
659
|
if (this.ngControl.control instanceof HerumFormControl)
|
|
657
660
|
this.errorMsg = this.ngControl.control.currentErrorMessage;
|
|
658
661
|
const controlStatus = this.ngControl.control.status;
|