chore: prevent user selection within signature pad (#1530)

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.
This commit is contained in:
Luca Hagel
2024-12-13 06:02:26 +01:00
committed by GitHub
parent d7de3b08c1
commit f73441ee85

View File

@ -461,7 +461,7 @@ export const SignaturePad = ({
return ( return (
<div <div
className={cn('relative block', containerClassName, { className={cn('relative block select-none', containerClassName, {
'pointer-events-none opacity-50': disabled, 'pointer-events-none opacity-50': disabled,
})} })}
> >