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 d850fcd commit f18ee1f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 f18ee1f

Please sign in to comment.