We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0715ca9 commit 2f195feCopy full SHA for 2f195fe
microfrontends/SignDocuments/src/Component/component/signPad.js
@@ -55,16 +55,17 @@ function SignPad({
55
setSignValue(currentUserName);
56
setFontSelect("Fasthand");
57
}, []);
58
- //function for clear signature
59
- const handleClear = (type) => {
+ //function for clear signature image
+ const handleClear = () => {
60
if (isTab === "draw") {
61
if (canvasRef.current) {
62
canvasRef.current.clear();
63
+ } else if (isStamp) {
64
+ setImage("");
65
}
66
67
setIsSignImg("");
68
} else if (isTab === "uploadImage") {
- setImage("");
69
70
};
71
//function for set signature url
0 commit comments