Browse Source

Key property group components so that they fully remount on component change

master
Andrew Kingston 6 years ago
parent
commit
5adc144330
  1. 2
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyGroup.svelte

2
packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyGroup.svelte

@ -25,7 +25,7 @@
<DetailSummary name={`${name}${changed ? ' *' : ''}`} on:open show={open} thin>
{#if open}
<div>
{#each properties as prop}
{#each properties as prop (`${componentInstance._id}-${prop.key}`)}
<PropertyControl
bindable={false}
label={`${prop.label}${hasPropChanged(style, prop) ? ' *' : ''}`}

Loading…
Cancel
Save