Browse Source

Fix lag when swapping between settings and design options

gh-pages
Andrew Kingston 6 years ago
parent
commit
d7acc57ece
  1. 24
      packages/builder/src/components/userInterface/PropertyGroup.svelte

24
packages/builder/src/components/userInterface/PropertyGroup.svelte

@ -14,17 +14,19 @@
</script>
<DetailSummary {name} on:open show={open} thin>
<div>
{#each properties as props}
<PropertyControl
label={props.label}
control={props.control}
key={props.key}
value={style[props.key]}
onChange={(key, value) => onStyleChanged(styleCategory, key, value)}
props={{ ...excludeProps(props, ['control', 'label']) }} />
{/each}
</div>
{#if open}
<div>
{#each properties as props}
<PropertyControl
label={props.label}
control={props.control}
key={props.key}
value={style[props.key]}
onChange={(key, value) => onStyleChanged(styleCategory, key, value)}
props={{ ...excludeProps(props, ['control', 'label']) }} />
{/each}
</div>
{/if}
</DetailSummary>
<style>

Loading…
Cancel
Save