Skip to content

Commit

Permalink
enhance: enter edit mode when creating shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Apr 12, 2023
1 parent f9f8c8f commit 4c7597a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -87,8 +87,10 @@ export class CreatingState<
this.tool.transition('idle')
if (this.creatingShape) {
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()
}

Expand Down

0 comments on commit 4c7597a

Please sign in to comment.