MediaMath / strand

A collection of modular, reusable Web Components built upon Polymer
http://mediamath.github.io/strand/
BSD 3-Clause "New" or "Revised" License
119 stars 46 forks source link

[strand-radio] disabled not working via js #155

Closed dlasky closed 7 years ago

dlasky commented 7 years ago

The disabled property on the radio button does not seem to be exposed. However, it works for the html attribute. Can be reproduced with the sample code on the component page

http://strand.mediamath.com/strand-radio.html:


<strand-radio group="aces" unresolved>
    <label>My Label 1</label>
</strand-radio>
<strand-radio id="test" group="aces" unresolved>
    <label>My Label 2</label>
</strand-radio>
<strand-radio group="aces" unresolved>
    <label>My Label 3</label>
</strand-radio>
<strand-radio group="aces" checked="true" disabled="true" unresolved>
    <label>My Label 4</label>
</strand-radio>

<script>
    var button = document.getElementById('test');
    button.checked = true;
    button.disabled = true;
</script>```

via @sassomedia