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 9e9a598 commit ce5a828Copy full SHA for ce5a828
src/signature_pad.js
@@ -68,12 +68,13 @@ function init(Survey) {
68
question.valueChangedCallback = updateValueHandler;
69
updateValueHandler();
70
question.signaturePad = signaturePad;
71
+ var buttonEl = el.getElementsByTagName("button")[0];
72
if (question.allowClear && !question.isReadOnly) {
- el.getElementsByTagName("button")[0].onclick = function() {
73
+ buttonEl.onclick = function() {
74
question.value = undefined;
75
};
76
} else {
- el.getElementsByTagName("button")[0].remove();
77
+ buttonEl.parentNode.removeChild(buttonEl);
78
}
79
},
80
willUnmount: function(question, el) {
0 commit comments