Skip to content

Commit 3635a51

Browse files
committed
[update] Update comment in SignatureOverlay
1 parent 690ee0c commit 3635a51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/SignatureOverlay/SignatureOverlay.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ class SignatureOverlay extends React.PureComponent {
6060
freeHandAnnot && !freeHandAnnot.getPaths().length
6161
) {
6262
// location of signatureTool will be set when clicking on a signature widget
63-
// we want to clear location when the overlay is closed without selecting any default signatures
63+
// we want to clear location when the overlay is closed without any default signatures selected
6464
// to prevent signature from being drawn to the previous location
65+
// however the overlay will be closed without any default signature selected if we clicked the "add signature" button(which opens the signature modal)
66+
// we don't want to clear the location in the case because we still want the signature to be automatically added to the widget after the create button is hit in the modal
6567
this.signatureTool.clearLocation();
6668
}
6769
}

0 commit comments

Comments
 (0)