@klippa/ngx-enhancy-forms 11.5.1 → 11.5.2
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/esm2020/lib/form/form-caption/form-caption.component.mjs +1 -6
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +0 -4
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +0 -4
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -930,11 +930,7 @@ class FormCaptionComponent {
|
|
|
930
930
|
// <some-input />
|
|
931
931
|
// That would fail, because the logic of the form error is run first, and at that moment, the `some-input` isnt registered yet
|
|
932
932
|
setTimeout(() => {
|
|
933
|
-
const attachedControl = this.parent.getAttachedControl();
|
|
934
933
|
this.parent.registerCaption(this.contentRef);
|
|
935
|
-
if (isNullOrUndefined(attachedControl)) {
|
|
936
|
-
throw new Error('You added a Form Caption component without an attached Form Control');
|
|
937
|
-
}
|
|
938
934
|
});
|
|
939
935
|
}
|
|
940
936
|
}
|