Skip to content

Commit 47bdf13

Browse files
authored
Added isReadOnly check for the "clear" button
1 parent 54acbd8 commit 47bdf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signature_pad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function init(Survey) {
6969
question.valueChangedCallback = updateValueHandler;
7070
updateValueHandler();
7171
question.signaturePad = signaturePad;
72-
if (question.allowClear) {
72+
if (question.allowClear && !question.isReadOnly) {
7373
el.getElementsByTagName("button")[0].onclick = function() {
7474
signaturePad.clear();
7575
};

0 commit comments

Comments
 (0)