bugfix click on signing on mobile

This commit is contained in:
Timur Ercan
2023-03-26 20:03:46 +02:00
parent f96bf757e2
commit 3d0d7d1245

View File

@ -35,12 +35,12 @@ export default function SignableField(props: FieldPropsType) {
defaultPosition={{ x: 0, y: 0 }} defaultPosition={{ x: 0, y: 0 }}
cancel="div" cancel="div"
onMouseDown={(e: any) => { onMouseDown={(e: any) => {
e.preventDefault(); // e.preventDefault();
e.stopPropagation(); e.stopPropagation();
}} }}
> >
<div <div
onClick={() => { onClick={(e: any) => {
if (!field?.signature) props.onClick(props.field); if (!field?.signature) props.onClick(props.field);
}} }}
ref={nodeRef} ref={nodeRef}