瀏覽代碼

Update textWysiwyg.tsx

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

+ 2 - 3
src/element/textWysiwyg.tsx

@@ -541,10 +541,9 @@ export const textWysiwyg = ({
       target instanceof HTMLInputElement &&
       target.closest(".color-picker-input") &&
       isWritableElement(target);
- 
+
     const isShapeActionsPanel =
-      (target instanceof HTMLElement ||
-        target instanceof SVGElement) &&
+      (target instanceof HTMLElement || target instanceof SVGElement) &&
       (target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
         target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
         target.closest(`.${CLASSES.MOBILE_TOOLBAR}`)) &&