Skip to content

Commit

Permalink
fix(demos): Fix non-unique ids in radio demo (#792)
Browse files Browse the repository at this point in the history
Previously, the first set of radios would change when clicking the labels of the disabled radios.
  • Loading branch information
jscissr authored and traviskaufman committed Jun 5, 2017
1 parent 90976df commit cada61a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@
<h2>With Javascript</h2>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="ex2-radio1" checked name="ex2">
<input class="mdc-radio__native-control" type="radio" id="ex0-radio1" checked name="ex0">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label id="ex2-radio1-label" for="ex2-radio1">Radio 1</label>
<label id="ex0-radio1-label" for="ex0-radio1">Radio 1</label>
</div>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="ex2-radio2" name="ex2">
<input class="mdc-radio__native-control" type="radio" id="ex0-radio2" name="ex0">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label id="ex2-radio2-label" for="ex2-radio2">Radio 2</label>
<label id="ex0-radio2-label" for="ex0-radio2">Radio 2</label>
</div>
</section>

Expand Down

0 comments on commit cada61a

Please sign in to comment.