From 96cc273afd3939a3799afcab4475bc36472597ef Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Tue, 9 Apr 2024 11:26:09 +0530 Subject: [PATCH] Fix: made text unselectable in user mode --- src/components/workspace/elements/text.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/workspace/elements/text.tsx b/src/components/workspace/elements/text.tsx index 8830113..15671b3 100644 --- a/src/components/workspace/elements/text.tsx +++ b/src/components/workspace/elements/text.tsx @@ -49,7 +49,7 @@ const Text: React.FC = forwardRef( className={twMerge( props.className, consumer.styles?.elements?.text?.base?.className, - consumer.mode === "user" && "pointer-events-none" + consumer.mode === "user" && "!pointer-events-none" )} style={{ ...consumer.styles?.elements?.text?.base?.properties, stroke: color, color }} {...{ [dataAttributes.embraceOffset]: embraceOffset }}