瀏覽代碼

Update textWysiwyg.tsx

zsviczian 3 年之前
父節點
當前提交
531829d95e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/element/textWysiwyg.tsx

+ 4 - 1
src/element/textWysiwyg.tsx

@@ -564,7 +564,10 @@ export const textWysiwyg = ({
         });
         handleSubmit();
       };
-      if (target && isTargetColorPicker) {
+      if (
+        target &&
+        (isTargetColorPicker || isShapeActionsPanel)
+      ) {
         target.onblur = () => {
           editable.focus();
         };