add key to SchemaField component to keep input state independent

This commit is contained in:
xzdry 2022-01-04 14:25:10 +08:00
parent 95459ecee6
commit 3f60e5ba12

View File

@ -130,6 +130,7 @@ export const ComponentForm: React.FC<Props> = observer(props => {
<SchemaField
schema={cImpl.spec.properties}
label=""
key={selectedComponent.id}
formData={properties}
onChange={newFormData => {
eventBus.send(