Skip to content

Commit b021d43

Browse files
committed
Fix the bug: #78
1 parent a6bd575 commit b021d43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inputmask.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ function init(Survey) {
106106
},
107107
willUnmount: function(question, el) {
108108
var input = el.querySelector("input") || el;
109-
input.inputmask.remove();
109+
if (!!input && !!input.inputmask) {
110+
input.inputmask.remove();
111+
}
110112
}
111113
};
112114

0 commit comments

Comments
 (0)