Ver Fonte

Update textWysiwyg.tsx

zsviczian há 3 anos atrás
pai
commit
e429b7048d
1 ficheiros alterados com 5 adições e 6 exclusões
  1. 5 6
      src/element/textWysiwyg.tsx

+ 5 - 6
src/element/textWysiwyg.tsx

@@ -563,12 +563,11 @@ export const textWysiwyg = ({
       event.target.closest(".color-picker-input") &&
       isWritableElement(event.target);
     const isShapeActionsPanel =
-      ((event.target instanceof HTMLElement ||
-        event.target instanceof SVGElement) && (
-          event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
-          event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
-          event.target.closest(`.${CLASSES.MOBILE_TOOLBAR}`)
-      ));
+      (event.target instanceof HTMLElement ||
+        event.target instanceof SVGElement) &&
+      (event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
+        event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
+        event.target.closest(`.${CLASSES.MOBILE_TOOLBAR}`));
     if (
       ((event.target instanceof HTMLElement ||
         event.target instanceof SVGElement) &&