fix: 失去焦点的时候判断 flag 是否为 失去焦点状态 如果是 则不重复触发

This commit is contained in:
UOrb 2021-01-31 10:45:31 +08:00
parent 1b4ce837af
commit f3028270d7
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ function _bindFocusAndBlur(editor: Editor): void {
if (!isChild) {
// 若为选择工具栏中的功能,则不视为成 blur 操作
if (isToolbar && !isMenu) {
if ((isToolbar && !isMenu) || !editor.isFocus) {
return
}
_blurHandler(editor)