Skip to content

Commit 07f82d9

Browse files
committed
Added autoUnmaskoption - #74
1 parent 621a028 commit 07f82d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/inputmask.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function init(Survey) {
99
numericDigitsOptional: false,
1010
numericPrefix: "$",
1111
numericPlaceholder: "0",
12+
autoUnmask: true,
1213
widgetIsLoaded: function() {
1314
return typeof Inputmask != "undefined";
1415
},
@@ -51,7 +52,9 @@ function init(Survey) {
5152
surveyElement.inputMask != "none"
5253
? surveyElement.inputMask
5354
: surveyElement.inputFormat;
54-
var options = {};
55+
var options = {
56+
autoUnmask: rootWidget.autoUnmask
57+
};
5558
if (surveyElement.inputMask != "none")
5659
options.inputFormat = surveyElement.inputFormat;
5760

0 commit comments

Comments
 (0)