Don't set value on all types of input
This commit is contained in:
parent
3fd3c53bd9
commit
e2b7f194c3
|
@ -328,14 +328,15 @@ function configDialog(style) {
|
||||||
}
|
}
|
||||||
} else if (va.type === 'checkbox') {
|
} else if (va.type === 'checkbox') {
|
||||||
va.input.checked = Number(value);
|
va.input.checked = Number(value);
|
||||||
}
|
} else if (va.type === 'range') {
|
||||||
if (va.type === 'range') {
|
|
||||||
const span = $('.current-value', va.input.parentNode);
|
const span = $('.current-value', va.input.parentNode);
|
||||||
|
va.input.value = value;
|
||||||
if (span) {
|
if (span) {
|
||||||
span.textContent = value;
|
span.textContent = value;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
va.input.value = value;
|
va.input.value = value;
|
||||||
|
}
|
||||||
if (!prefs.get('config.autosave')) {
|
if (!prefs.get('config.autosave')) {
|
||||||
renderValueState(va);
|
renderValueState(va);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user