Skip to content

Commit d92c4b8

Browse files
author
hikki
committed
v3.6
1 parent d9140c6 commit d92c4b8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

resources/assets/component.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,12 +1006,14 @@ window.ComponentLine = class {
10061006

10071007
makeTd(td, settings, value, column) {
10081008
let input;
1009-
let input_change = function() {
1009+
let DATA = this.DATA;
1010+
let DATA_INPUT = this.DATA_INPUT;
1011+
let input_change = function input_change() {
10101012
let key = input.parentNode.parentNode.getAttribute('data-key');
10111013
let column = input.getAttribute('data-column');
1012-
if (this.DATA[key]) {
1013-
this.DATA[key][column] = input.value;
1014-
this.DATA_INPUT.value = JSON.stringify(this.DATA);
1014+
if (DATA[key]) {
1015+
DATA[key][column] = input.value;
1016+
DATA_INPUT.value = JSON.stringify(DATA);
10151017
}
10161018
};
10171019
switch (settings.type) {

0 commit comments

Comments
 (0)