No. name
has to be unique for checkboxes, just like normal HTML.
<aui:input type="checkbox" name="teamAAA" value="joe" label="joe" checked="false" />
<aui:input type="checkbox" name="teamBBB" value="ben" label="ben" checked="false" />
Did you mean to use type
radio? Those would need the same name
.
<aui:input type="radio" name="team" value="joe" label="joe" checked="false" />
<aui:input type="radio" name="team" value="ben" label="ben" checked="false" />
Update:
<aui:input>
will normalize name
and id
if id
isn't explicitly passed. So in your code, but inputs have the same id
, which causes the wrong input to be focused when clicking the label.