Update textWysiwyg.tsx
This commit is contained in:
parent
d969849357
commit
b610c04481
@ -541,10 +541,9 @@ export const textWysiwyg = ({
|
|||||||
target instanceof HTMLInputElement &&
|
target instanceof HTMLInputElement &&
|
||||||
target.closest(".color-picker-input") &&
|
target.closest(".color-picker-input") &&
|
||||||
isWritableElement(target);
|
isWritableElement(target);
|
||||||
|
|
||||||
const isShapeActionsPanel =
|
const isShapeActionsPanel =
|
||||||
(target instanceof HTMLElement ||
|
(target instanceof HTMLElement || target instanceof SVGElement) &&
|
||||||
target instanceof SVGElement) &&
|
|
||||||
(target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
|
(target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
|
||||||
target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
|
target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
|
||||||
target.closest(`.${CLASSES.MOBILE_TOOLBAR}`)) &&
|
target.closest(`.${CLASSES.MOBILE_TOOLBAR}`)) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user