Don't set value on all types of input

This commit is contained in:
Rob Garrison 2018-09-05 07:38:22 -05:00
parent 3fd3c53bd9
commit e2b7f194c3

View File

@ -328,14 +328,15 @@ function configDialog(style) {
}
} else if (va.type === 'checkbox') {
va.input.checked = Number(value);
}
if (va.type === 'range') {
} else if (va.type === 'range') {
const span = $('.current-value', va.input.parentNode);
va.input.value = value;
if (span) {
span.textContent = value;
}
}
} else {
va.input.value = value;
}
if (!prefs.get('config.autosave')) {
renderValueState(va);
}