i-tech-shared-components 1.4.77 → 1.4.78
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.
|
@@ -2410,6 +2410,14 @@ class PhoneNumberInputComponent {
|
|
|
2410
2410
|
if (this.ngControl.control.disabled) {
|
|
2411
2411
|
this.form.disable({ emitEvent: false });
|
|
2412
2412
|
}
|
|
2413
|
+
this.ngControl.control.statusChanges.subscribe((status) => {
|
|
2414
|
+
if (status === 'DISABLED') {
|
|
2415
|
+
this.form.disable({ emitEvent: false });
|
|
2416
|
+
}
|
|
2417
|
+
else if (this.form.disabled) {
|
|
2418
|
+
this.form.enable({ emitEvent: false });
|
|
2419
|
+
}
|
|
2420
|
+
});
|
|
2413
2421
|
this.updateMask();
|
|
2414
2422
|
}
|
|
2415
2423
|
updateMask() {
|