From 0ed3775a6d3752871953cf7ce98394a71afde274 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 27 Jul 2022 10:10:42 +0100 Subject: [PATCH] Fully remount component settings when changing selected component --- .../settings/ComponentSettingsPanel.svelte | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ComponentSettingsPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ComponentSettingsPanel.svelte index ff0c53e7ab..8ece061f57 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ComponentSettingsPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ComponentSettingsPanel.svelte @@ -27,20 +27,26 @@ {#if $selectedComponent} - - - - - - + {#key $selectedComponent._id} + + + + + + + {/key} {/if}