Fix bug where stale data is shown in custom css drawer when changing components
This commit is contained in:
parent
c936ab2619
commit
48fdc8a2df
|
@ -35,17 +35,19 @@
|
||||||
<ActionButton on:click={openDrawer}>Edit custom CSS</ActionButton>
|
<ActionButton on:click={openDrawer}>Edit custom CSS</ActionButton>
|
||||||
</div>
|
</div>
|
||||||
</DetailSummary>
|
</DetailSummary>
|
||||||
<Drawer bind:this={drawer} title="Custom CSS">
|
{#key componentInstance?._id}
|
||||||
<Button cta slot="buttons" on:click={save}>Save</Button>
|
<Drawer bind:this={drawer} title="Custom CSS">
|
||||||
<DrawerContent slot="body">
|
<Button cta slot="buttons" on:click={save}>Save</Button>
|
||||||
<div class="content">
|
<DrawerContent slot="body">
|
||||||
<Layout gap="S">
|
<div class="content">
|
||||||
<Body size="S">Custom CSS overrides all other component styles.</Body>
|
<Layout gap="S">
|
||||||
<TextArea bind:value={tempValue} placeholder="Enter some CSS..." />
|
<Body size="S">Custom CSS overrides all other component styles.</Body>
|
||||||
</Layout>
|
<TextArea bind:value={tempValue} placeholder="Enter some CSS..." />
|
||||||
</div>
|
</Layout>
|
||||||
</DrawerContent>
|
</div>
|
||||||
</Drawer>
|
</DrawerContent>
|
||||||
|
</Drawer>
|
||||||
|
{/key}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.content {
|
.content {
|
||||||
|
|
Loading…
Reference in New Issue