diff --git a/src/govuk/components/radios/radios.js b/src/govuk/components/radios/radios.js index 6e307f23e0..8216811ab4 100644 --- a/src/govuk/components/radios/radios.js +++ b/src/govuk/components/radios/radios.js @@ -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))