From 15f698dc21a2ce165f33d420e241c6234403f1b8 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Wed, 3 Feb 2021 20:43:16 +0100 Subject: [PATCH] fix: pointer-events being disabled on free-draw (#2912) --- src/components/LayerUI.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index ef245e8c..ad30daf5 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -11,7 +11,7 @@ import { CLASSES } from "../constants"; import { exportCanvas } from "../data"; import { importLibraryFromJSON, saveLibraryAsJSON } from "../data/json"; import { Library } from "../data/library"; -import { showSelectedShapeActions } from "../element"; +import { isTextElement, showSelectedShapeActions } from "../element"; import { NonDeletedExcalidrawElement } from "../element/types"; import { Language, t } from "../i18n"; import useIsMobile from "../is-mobile"; @@ -647,7 +647,10 @@ const LayerUI = ({ ) : (
{dialogs}