enhance: enter edit mode when creating shapes

pull/8787/head^2
Konstantinos Kaloutas 2023-04-12 14:48:08 +03:00 committed by Tienson Qin
parent f9f8c8f471
commit 4c7597af11
1 changed files with 3 additions and 1 deletions

View File

@ -87,8 +87,10 @@ export class CreatingState<
this.tool.transition('idle') this.tool.transition('idle')
if (this.creatingShape) { if (this.creatingShape) {
this.app.setSelectedShapes([this.creatingShape as unknown as S]) this.app.setSelectedShapes([this.creatingShape as unknown as S])
this.app.api.editShape(this.creatingShape)
} else {
this.app.transition('select')
} }
this.app.transition('select')
this.app.persist() this.app.persist()
} }