There was an error while loading. Please reload this page.
1 parent 3f94f91 commit 0e8f929Copy full SHA for 0e8f929
src/inputmask.js
@@ -4,10 +4,14 @@ function init(Survey) {
4
const updateTextItemPropInfo = function (propJSON) {
5
const name = propJSON.name;
6
propJSON.onGetValue = (obj) => {
7
- return obj.editor[name];
+ return !!obj.editor ? obj.editor[name] : obj[name];
8
};
9
propJSON.onSetValue = (obj, val) => {
10
- obj.editor[name] = val;
+ if(!!obj.editor) {
11
+ obj.editor[name] = val;
12
+ } else {
13
+ obj[name] = val;
14
+ }
15
}
16
17
const updateColumnPropInfo = function (propJSON) {
0 commit comments