fix: fix selecting component would change the properties' values issue

This commit is contained in:
MrWindlike 2022-08-17 10:09:24 +08:00
parent 87074162c9
commit a3f0c24e48

View File

@ -144,7 +144,7 @@ export const ComponentForm: React.FC<Props> = observer(props => {
<FormSection <FormSection
style={{ position: 'relative', zIndex: sections.length - i }} style={{ position: 'relative', zIndex: sections.length - i }}
title={section.title} title={section.title}
key={section.title} key={`${section.title}-${selectedComponentId}`}
> >
{section.node} {section.node}
</FormSection> </FormSection>