Fix: use this.value
This commit is contained in:
parent
191603ae01
commit
9d1b0884e5
|
@ -224,8 +224,8 @@ function createAppliesToLineWidget(cm) {
|
||||||
value: value,
|
value: value,
|
||||||
textContent: label
|
textContent: label
|
||||||
})),
|
})),
|
||||||
onchange(e) {
|
onchange() {
|
||||||
applyChange(apply.type, e.target.value);
|
applyChange(apply.type, this.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
typeInput.value = apply.type.text;
|
typeInput.value = apply.type.text;
|
||||||
|
@ -233,8 +233,8 @@ function createAppliesToLineWidget(cm) {
|
||||||
tag: 'input',
|
tag: 'input',
|
||||||
className: 'applies-value',
|
className: 'applies-value',
|
||||||
value: apply.value.text,
|
value: apply.value.text,
|
||||||
oninput(e) {
|
oninput() {
|
||||||
debounce(applyChange, THROTTLE_DELAY, apply.value, e.target.value);
|
debounce(applyChange, THROTTLE_DELAY, apply.value, this.value);
|
||||||
},
|
},
|
||||||
onfocus: updateRegexpTest
|
onfocus: updateRegexpTest
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user