fix: should blur all inputs after exiting edit mode

pull/6489/head
Peng Xiao 2022-08-17 16:10:56 +08:00
parent fe8679da2e
commit 6e0ed52af6
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ 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
}