Skip to content

Commit f7667c0

Browse files
Fix arr assignment in dirsource function
1 parent 38e5fac commit f7667c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

j-Input/component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ COMPONENT('input', 'maxlength:200;innerlabel:0;tabindex:0;dirkey:name;dirvalue:i
3434

3535
var dirsourceread = function() {
3636
var arr = GET(self.makepath(config.dirsource));
37+
if(typeof arr === 'function')
38+
self.EXEC(config.dirsource, null, (val) => { arr = val; });
3739
return dirsourceprepare(arr);
3840
};
3941

@@ -1276,4 +1278,4 @@ COMPONENT('input', 'maxlength:200;innerlabel:0;tabindex:0;dirkey:name;dirvalue:i
12761278
return (config.type === 'phone' || config.type === 'email') && (val != null && (type === 'string' && val.length !== 0));
12771279
};
12781280

1279-
});
1281+
});

0 commit comments

Comments
 (0)