From 327d9ecb866d590613b759b4324939ee8082f9a4 Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 10 Jan 2024 09:40:09 +0000 Subject: [PATCH] Fixes for rendering issues for Multistep in client and builder --- .../app/blocks/MultiStepFormblock.svelte | 137 +++++++++--------- 1 file changed, 69 insertions(+), 68 deletions(-) diff --git a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte index 62a1ce737b..d25b399adb 100644 --- a/packages/client/src/components/app/blocks/MultiStepFormblock.svelte +++ b/packages/client/src/components/app/blocks/MultiStepFormblock.svelte @@ -1,5 +1,6 @@ -{#key $currentStep} - - - {#each enrichedSteps as step, stepIdx} + + + {#each enrichedSteps as step, stepIdx (step._stepId)} + - - - - - - -
- {#each step.fields as field, fieldIdx (`${field.field || field.name}_${stepIdx}_${fieldIdx}`)} - {#if getComponentForField(field)} - - {/if} - {/each} -
-
- + + + + + +
+ {#each step.fields as field, fieldIdx (`${field.field || field.name}_${fieldIdx}`)} + {#if getComponentForField(field)} + + {/if} + {/each} +
+
+ - {/each} -
-
-{/key} +
+ {/each} + +