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
9a66fc6c05
commit
d969849357
1 changed files with 6 additions and 6 deletions
|
@ -543,12 +543,12 @@ export const textWysiwyg = ({
|
|||
isWritableElement(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}`)) &&
|
||||
!isWritableElement(event.target);
|
||||
(target instanceof HTMLElement ||
|
||||
target instanceof SVGElement) &&
|
||||
(target.closest(`.${CLASSES.SHAPE_ACTIONS_MENU}`) ||
|
||||
target.closest(`.${CLASSES.SHAPE_ACTIONS_MOBILE_MENU}`) ||
|
||||
target.closest(`.${CLASSES.MOBILE_TOOLBAR}`)) &&
|
||||
!isWritableElement(target);
|
||||
|
||||
setTimeout(() => {
|
||||
editable.onblur = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue