Skip to content

Commit

Permalink
Radio Labels indicate which item is button is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilbanks authored and dwilbanks committed Apr 20, 2017
1 parent 917b030 commit 7340b4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/View/Widget/RadioWidget.php
Expand Up @@ -172,6 +172,7 @@ protected function _renderInput($val, $text, $data, $context)
}
if (isset($data['val']) && (string)$data['val'] === (string)$radio['value']) {
$radio['checked'] = true;
$radio['templateVars']['activeClass'] = "active";
}

if (!is_bool($data['label']) && isset($radio['checked']) && $radio['checked']) {
Expand Down

0 comments on commit 7340b4a

Please sign in to comment.