Skip to content

Commit

Permalink
fixup name commit
Browse files Browse the repository at this point in the history
Co-Authored-By: Oliver Byford <oliver.byford@digital.cabinet-office.gov.uk>
  • Loading branch information
NickColley and 36degrees authored Jul 16, 2019
1 parent 037c1f6 commit 65e843f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/govuk/components/radios/radios.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Radios.prototype.handleClick = function (event) {
var $allInputs = $scope.querySelectorAll('input[type="radio"][aria-controls]')
nodeListForEach($allInputs, function ($input) {
// In radios, only radios with the same name will affect each other.
if ($clickedInput.name === $input.name) {
if ($input.name === $clickedInput.name) {
this.setAttributes($input)
}
}.bind(this))
Expand Down

0 comments on commit 65e843f

Please sign in to comment.