|
|
@@ -20,6 +20,9 @@ export class EditingShapeState<
|
|
|
onExit = () => {
|
|
|
this.app.persist()
|
|
|
this.app.clearEditingShape()
|
|
|
+
|
|
|
+ // Blur all inputs when exit idle
|
|
|
+ document.querySelectorAll<HTMLElement>('input,textarea').forEach(el => el.blur())
|
|
|
}
|
|
|
|
|
|
onPointerDown: TLEvents<S>['pointer'] = info => {
|
|
|
@@ -51,9 +54,6 @@ export class EditingShapeState<
|
|
|
e.stopPropagation()
|
|
|
this.app.setSelectedShapes([this.editingShape])
|
|
|
this.tool.transition('idle')
|
|
|
-
|
|
|
- // Blur all inputs when exit idle
|
|
|
- document.querySelectorAll<HTMLElement>('input,textarea').forEach(el => el.blur())
|
|
|
})
|
|
|
break
|
|
|
}
|