Skip to content

Commit

Permalink
fix: unique html id for checkbox (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed May 28, 2018
1 parent c6f3d7d commit e9f9ed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -42,7 +42,7 @@
<div class="#{ empty languages ? 'is-hidden' : ''}">

<div class="is-hidden--s l--pad-v-quarter">
<zanata:select-all-checkbox listSelector="##{id}-list"/>
<zanata:select-all-checkbox listSelector="##{id}-list" id="#{id}"/>
<div class="l--pad-left-1half">
<div class="g g--tight js-list-operation"
data-target-list="##{id}-list"
Expand Down
Expand Up @@ -30,12 +30,12 @@
}
</h:outputScript>
<div class="form__checkbox js-form__checkbox #{cc.attrs.styleClass}">
<input type="checkbox" id="form-checkbox-1"
<input type="checkbox" id="form-checkbox-#{cc.attrs.id}"
class="form__checkbox__input js-form__checkbox__input"
data-list-selector="#{cc.attrs.listSelector}"
name="form-checkbox"
onchange="#{cc.attrs.id}Selected($(this))"/>
<label for="form-checkbox-1"
<label for="form-checkbox-#{cc.attrs.id}"
class="form__checkbox__label">#{cc.attrs.label}</label>
</div>
</composite:implementation>
Expand Down

0 comments on commit e9f9ed7

Please sign in to comment.