Merge pull request #272 from webzard-io/fix/windlike-patch

fix(editor): auto change selected component id after id changed
This commit is contained in:
tanbowensg 2022-02-11 16:39:03 +08:00 committed by GitHub
commit 1304083729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,7 @@ export const ComponentForm: React.FC<Props> = observer(props => {
newId: value,
})
);
editorStore.setSelectedComponentId(value);
};
const onKeyDown = (e: React.KeyboardEvent) => {