@yuuvis/client-framework 3.8.0 → 3.8.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.
@@ -854,10 +854,14 @@ class DynamicCatalogComponent extends AbstractMatFormField {
854
854
  // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/explicit-module-boundary-types
855
855
  this.propagateChange = (fnc) => { };
856
856
  this.#translate.onLangChange.pipe(takeUntilDestroyed()).subscribe((evt) => this.#currentLang.set(evt.lang));
857
- // re-run validation once options have resolved (writeValue may run before the catalog response arrives)
857
+ // re-run validation once options have resolved (writeValue may run before the catalog response arrives).
858
+ // statusChanges is suppressed (emitEvent: false) to avoid a spurious value emission, so re-sync the
859
+ // host control and errorState explicitly — otherwise a stale { invalidValue: true } lingers on the host.
858
860
  effect(() => {
859
861
  this.options();
860
862
  this.ctrl.updateValueAndValidity({ emitEvent: false });
863
+ this.errorState = FormUtils.getErrorState(this.ctrl);
864
+ this.ngControl?.control?.setErrors(this.ctrl.errors);
861
865
  });
862
866
  }
863
867
  writeValue(value) {