Skip to content

Commit 07ffaec

Browse files
author
T_S_V
committed
Fix for the T2943 - Survey Creator - Currency InputMask value not saving in the JSON
1 parent 3790a67 commit 07ffaec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/inputmask.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ function init(Survey) {
100100
surveyElement.customWidgetData.isNeedRender = true;
101101
};
102102

103+
$(el).on('focusout change', function () {
104+
105+
if ($(el).inputmask('isComplete')) {
106+
surveyElement.value = $(el).val();
107+
} else {
108+
surveyElement.value = null;
109+
}
110+
111+
});
112+
103113
var updateHandler = function() {
104114
el.value =
105115
typeof surveyElement.value === "undefined" ? "" : surveyElement.value;

0 commit comments

Comments
 (0)