@maro-tech/form 0.1.5 → 0.1.6
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.
|
@@ -3181,6 +3181,9 @@ class FieldInputComponent {
|
|
|
3181
3181
|
const hostElement = this.componentRef.location.nativeElement;
|
|
3182
3182
|
hostElement.style.display = 'block';
|
|
3183
3183
|
hostElement.style.width = '100%';
|
|
3184
|
+
// Materialize the component view before syncing inputs so nested
|
|
3185
|
+
// ViewChild controls are available for their initial value.
|
|
3186
|
+
this.componentRef.changeDetectorRef.detectChanges();
|
|
3184
3187
|
this.syncInputs();
|
|
3185
3188
|
const instance = this.componentRef.instance;
|
|
3186
3189
|
const hasCva = !!instance.registerOnChange;
|
|
@@ -3193,6 +3196,7 @@ class FieldInputComponent {
|
|
|
3193
3196
|
instance.searchRequested?.subscribe(() => this.lookupRequested.emit());
|
|
3194
3197
|
instance.filesChange?.subscribe((files) => this.filesChange.emit(files));
|
|
3195
3198
|
instance.uploadingChange?.subscribe((uploading) => this.uploadingChange.emit(uploading));
|
|
3199
|
+
this.componentRef.changeDetectorRef.detectChanges();
|
|
3196
3200
|
}
|
|
3197
3201
|
syncInputs() {
|
|
3198
3202
|
if (!this.componentRef || !this.field)
|