Skip to content

Commit

Permalink
Fix: made text unselectable in user mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Apr 9, 2024
1 parent 5fd9121 commit 96cc273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/workspace/elements/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Text: React.FC<ITextProps> = 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 }}
Expand Down

0 comments on commit 96cc273

Please sign in to comment.