Fully remount component settings when changing selected component
This commit is contained in:
parent
f2888ce297
commit
32aa686884
|
@ -27,6 +27,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $selectedComponent}
|
{#if $selectedComponent}
|
||||||
|
{#key $selectedComponent._id}
|
||||||
<Panel {title} icon={componentDefinition.icon} borderLeft>
|
<Panel {title} icon={componentDefinition.icon} borderLeft>
|
||||||
<ComponentSettingsSection
|
<ComponentSettingsSection
|
||||||
{componentInstance}
|
{componentInstance}
|
||||||
|
@ -36,11 +37,16 @@
|
||||||
{isScreen}
|
{isScreen}
|
||||||
/>
|
/>
|
||||||
<DesignSection {componentInstance} {componentDefinition} {bindings} />
|
<DesignSection {componentInstance} {componentDefinition} {bindings} />
|
||||||
<CustomStylesSection {componentInstance} {componentDefinition} {bindings} />
|
<CustomStylesSection
|
||||||
|
{componentInstance}
|
||||||
|
{componentDefinition}
|
||||||
|
{bindings}
|
||||||
|
/>
|
||||||
<ConditionalUISection
|
<ConditionalUISection
|
||||||
{componentInstance}
|
{componentInstance}
|
||||||
{componentDefinition}
|
{componentDefinition}
|
||||||
{bindings}
|
{bindings}
|
||||||
/>
|
/>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
{/key}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue