diff --git a/scripts/index.js b/scripts/index.js index dd1a579..31d5852 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -157,6 +157,7 @@ function triggerSliders(generate) { // Disable on override condition overrideElement.addEventListener("input", (e) => { sliderElement.disabled = !func(e.target); + if (!func(overrideElement)) sliderElement.classList.add("off"); }); // Update description on attribute change