@vectoriox/iox-builder 4.12.0 → 4.12.1
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.
|
@@ -5907,9 +5907,14 @@ class BuilderComponent {
|
|
|
5907
5907
|
return;
|
|
5908
5908
|
// Straight onto the live instance: this is a VIEW state, not page data — it must never be
|
|
5909
5909
|
// persisted, or a page would ship showing its own success message.
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5910
|
+
//
|
|
5911
|
+
// Two input names on purpose: the CANVAS renders the container twin (`formState`) while the
|
|
5912
|
+
// ENGINE renders IoxFormComponent (`renderState`). safeSetInput drops whichever the rendered
|
|
5913
|
+
// component does not declare, so this works on either path without branching on type.
|
|
5914
|
+
const ref = this.overlayService.getNodeRef(form)?.componentRef;
|
|
5915
|
+
if (ref) {
|
|
5916
|
+
safeSetInput(ref, 'formState', state);
|
|
5917
|
+
safeSetInput(ref, 'renderState', state);
|
|
5913
5918
|
}
|
|
5914
5919
|
this.cdr.detectChanges();
|
|
5915
5920
|
}
|