diff --git a/scripts/index.js b/scripts/index.js index 31d5852..5beff90 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -158,6 +158,7 @@ function triggerSliders(generate) { overrideElement.addEventListener("input", (e) => { sliderElement.disabled = !func(e.target); if (!func(overrideElement)) sliderElement.classList.add("off"); + else sliderElement.classList.remove("off"); }); // Update description on attribute change @@ -191,6 +192,7 @@ function triggerSliders(generate) { sliderElement.disabled = !func(overrideElement); if (!func(overrideElement)) sliderElement.classList.add("off"); + else sliderElement.classList.remove("off"); updateDescription( description[0],