Skip to content

Commit 0e8f929

Browse files
committed
Fix runtime error with inputmask
1 parent 3f94f91 commit 0e8f929

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/inputmask.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ function init(Survey) {
44
const updateTextItemPropInfo = function (propJSON) {
55
const name = propJSON.name;
66
propJSON.onGetValue = (obj) => {
7-
return obj.editor[name];
7+
return !!obj.editor ? obj.editor[name] : obj[name];
88
};
99
propJSON.onSetValue = (obj, val) => {
10-
obj.editor[name] = val;
10+
if(!!obj.editor) {
11+
obj.editor[name] = val;
12+
} else {
13+
obj[name] = val;
14+
}
1115
}
1216
}
1317
const updateColumnPropInfo = function (propJSON) {

0 commit comments

Comments
 (0)