googlearchive / paper-slider

A slider à la Material Design
16 stars 18 forks source link

Programmatically changing the disabled state #15

Closed davidwittenbrink closed 10 years ago

davidwittenbrink commented 10 years ago

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.

ebidel commented 10 years ago

Tweaking slider.disabled = true works for me on the demo page. You should not have to use setAttribute(). The element publishes a disabled property.

davidwittenbrink commented 10 years ago

My bad. There was a problem with my configuration