mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update textWysiwyg.tsx
This commit is contained in:
parent
8640e75ccf
commit
cec3cf8334
1 changed files with 5 additions and 1 deletions
|
@ -562,10 +562,14 @@ export const textWysiwyg = ({
|
||||||
event.target instanceof HTMLInputElement &&
|
event.target instanceof HTMLInputElement &&
|
||||||
event.target.closest(".color-picker-input") &&
|
event.target.closest(".color-picker-input") &&
|
||||||
isWritableElement(event.target);
|
isWritableElement(event.target);
|
||||||
|
const isShapeActionsPanel =
|
||||||
|
event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
|
||||||
|
event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
|
||||||
|
event.target.closest(`.${CLASSES.MOBILE_TOOLBAR}`);
|
||||||
if (
|
if (
|
||||||
((event.target instanceof HTMLElement ||
|
((event.target instanceof HTMLElement ||
|
||||||
event.target instanceof SVGElement) &&
|
event.target instanceof SVGElement) &&
|
||||||
event.target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) &&
|
isShapeActionsPanel &&
|
||||||
!isWritableElement(event.target)) ||
|
!isWritableElement(event.target)) ||
|
||||||
isTargetColorPicker
|
isTargetColorPicker
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue