Skip to content

Commit

Permalink
chore: prevent user selection within signature pad (documenso#1530)
Browse files Browse the repository at this point in the history
adds a `select-none` class to the signature pad in order to
prevent iPadOS from becoming too trigger happy with the context menu and
auto corrects. Please ensure this doesn't break anything by accident.
  • Loading branch information
luhagel authored Dec 13, 2024
1 parent d7de3b0 commit f73441e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/primitives/signature-pad/signature-pad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export const SignaturePad = ({

return (
<div
className={cn('relative block', containerClassName, {
className={cn('relative block select-none', containerClassName, {
'pointer-events-none opacity-50': disabled,
})}
>
Expand Down

0 comments on commit f73441e

Please sign in to comment.