Update textWysiwyg.tsx

This commit is contained in:
zsviczian 2022-03-11 13:44:25 +01:00 committed by GitHub
parent e61b447413
commit e429b7048d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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