From e2b7f194c3534b82a217e09c7e4ca4a20c544d7e Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 5 Sep 2018 07:38:22 -0500 Subject: [PATCH] Don't set value on all types of input --- manage/config-dialog.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 3a1ae9e7..bbfe0c20 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -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; } - va.input.value = value; if (!prefs.get('config.autosave')) { renderValueState(va); }