I'm working on a web component for a Philips Hue bulb and would like to disable a slider when the bulb is unreachable.
I tried using slider.disabled = true but it didn't work. slider.setAttribute("disabled", true) works but I'm not able to change it back to an enabled state.
I'm working on a web component for a Philips Hue bulb and would like to disable a slider when the bulb is unreachable. I tried using
slider.disabled = true
but it didn't work.slider.setAttribute("disabled", true)
works but I'm not able to change it back to an enabled state.