Skip to content

Commit 9b95273

Browse files
author
T_S_V
committed
Implemented #224 - Support clearIncomplete option for inputmask widget
1 parent 2d6f498 commit 9b95273

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/inputmask.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function init(Survey) {
99
numericDigitsOptional: false,
1010
numericPlaceholder: "0",
1111
autoUnmask: true,
12+
clearIncomplete: true,
1213
widgetIsLoaded: function () {
1314
return typeof Inputmask != "undefined";
1415
},
@@ -35,6 +36,11 @@ function init(Survey) {
3536
category: "general",
3637
default: true,
3738
},
39+
{
40+
name: "clearIncomplete:boolean",
41+
category: "general",
42+
default: true,
43+
},
3844
{
3945
name: "inputMask",
4046
category: "general",
@@ -68,7 +74,11 @@ function init(Survey) {
6874
typeof surveyElement.autoUnmask !== "undefined"
6975
? surveyElement.autoUnmask
7076
: rootWidget.autoUnmask,
71-
};
77+
clearIncomplete:
78+
typeof surveyElement.clearIncomplete !== "undefined"
79+
? surveyElement.clearIncomplete
80+
: rootWidget.clearIncomplete,
81+
};
7282
if (surveyElement.inputMask != "none")
7383
options.inputFormat = surveyElement.inputFormat;
7484

0 commit comments

Comments
 (0)