herum-shared 0.1.33 → 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.
|
@@ -652,6 +652,10 @@ class HerumInputFieldComponent {
|
|
|
652
652
|
if (this.ngControl instanceof FormControlName)
|
|
653
653
|
this.formControlName = this.ngControl.name?.toString() || '';
|
|
654
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);
|
|
655
659
|
if (this.ngControl.control instanceof HerumFormControl)
|
|
656
660
|
this.errorMsg = this.ngControl.control.currentErrorMessage;
|
|
657
661
|
const controlStatus = this.ngControl.control.status;
|