Skip to content

Commit

Permalink
Added autoUnmaskoption - #74
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Aug 21, 2018
1 parent 621a028 commit 07f82d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function init(Survey) {
numericDigitsOptional: false,
numericPrefix: "$",
numericPlaceholder: "0",
autoUnmask: true,
widgetIsLoaded: function() {
return typeof Inputmask != "undefined";
},
Expand Down Expand Up @@ -51,7 +52,9 @@ function init(Survey) {
surveyElement.inputMask != "none"
? surveyElement.inputMask
: surveyElement.inputFormat;
var options = {};
var options = {
autoUnmask: rootWidget.autoUnmask
};
if (surveyElement.inputMask != "none")
options.inputFormat = surveyElement.inputFormat;

Expand Down

0 comments on commit 07f82d9

Please sign in to comment.