The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
🐛 doc-122
Timur Ercanbabed9a3b32f
diff --git a/apps/web/components/editor/field-type-selector.tsx b/apps/web/components/editor/field-type-selector.tsxindex 6dfda8024..d841a01a5 100644--- a/apps/web/components/editor/field-type-selector.tsx+++ b/apps/web/components/editor/field-type-selector.tsx@@ -25,15 +25,15 @@ export default function FieldTypeSelector(props: any) {onChange={(e: any) => {setSelectedFieldType(e);}}- onMouseDown={() => {- props.setAdding(true);+ onMouseDown={(e) => {+ if (e.button === 0) props.setAdding(true);}}><div className="space-y-4">{fieldTypes.map((fieldType) => (<RadioGroup.Option- onMouseDown={() => {- setSelectedFieldType(fieldType.id);+ onMouseDown={(e) => {+ if (e.button === 0) setSelectedFieldType(fieldType.id);}}key={fieldType.id}value={fieldType.id}diff --git a/apps/web/components/editor/pdf-editor.tsx b/apps/web/components/editor/pdf-editor.tsxindex da2f3f9ff..46410c72b 100644--- a/apps/web/components/editor/pdf-editor.tsx+++ b/apps/web/components/editor/pdf-editor.tsx@@ -67,7 +67,7 @@ export default function PDFEditor(props: any) {}}}onMouseDown={(e: any, page: number) => {- addField(e, page);+ if (e.button === 0) addField(e, page);}}></PDFViewer><divdiff --git a/apps/web/components/editor/pdf-signer.tsx b/apps/web/components/editor/pdf-signer.tsxindex 113c165db..9fc9e230a 100644--- a/apps/web/components/editor/pdf-signer.tsx+++ b/apps/web/components/editor/pdf-signer.tsx@@ -145,7 +145,7 @@ export default function PDFSigner(props: any) {pdfUrl={`${NEXT_PUBLIC_WEBAPP_URL}/api/documents/${router.query.id}?token=${router.query.token}`}onClick={onClick}onMouseDown={function onMouseDown(e: any, page: number) {- if (signatureFields.length === 0)+ if (e.Button === 0 && signatureFields.length === 0)addFreeSignature(e, page, props.recipient);}}onMouseUp={() => {}}diff --git a/apps/web/components/editor/pdf-viewer.jsx b/apps/web/components/editor/pdf-viewer.jsxindex 4fc1d5a4d..43167ad11 100644--- a/apps/web/components/editor/pdf-viewer.jsx+++ b/apps/web/components/editor/pdf-viewer.jsx@@ -46,10 +46,10 @@ export default function PDFViewer(props) {<Fragment key={short.generate().toString()}><divonMouseDown={(e) => {- props.onMouseDown(e, index);+ if (e.button === 0) props.onMouseDown(e, index);}}onMouseUp={(e) => {- props.onMouseUp(e, index);+ if (e.button === 0) props.onMouseUp(e, index);}}key={short.generate().toString()}style={{