From b610c044812d69fa11bf7ba3f2e08ab051cf1ec5 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sun, 13 Mar 2022 23:04:22 +0100 Subject: [PATCH] Update textWysiwyg.tsx --- src/element/textWysiwyg.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index 8ab50634a..af4fa0378 100644 --- a/src/element/textWysiwyg.tsx +++ b/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}`)) &&