Skip to content
Permalink
Browse files

StringTemplate::addClass now defaults to using 'class' element

  • Loading branch information...
lilHermit committed Jan 31, 2017
1 parent f304403 commit 3e05d22058a14f5b7eb68065154f66c2eb80ca35
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/View/Widget/MultiCheckboxWidget.php
  2. +1 −1 src/View/Widget/RadioWidget.php
@@ -212,7 +212,7 @@ protected function _renderInput($checkbox, $context)
}
if (isset($checkbox['checked']) && $checkbox['checked']) {
$labelAttrs = $this->_templates->addClass($labelAttrs, 'selected', ['useIndex' => 'class']);
$labelAttrs = $this->_templates->addClass($labelAttrs, 'selected');
}
$label = $this->_label->render($labelAttrs, $context);
@@ -183,7 +183,7 @@ protected function _renderInput($val, $text, $data, $context)
$data['label']['class'] = [];
}
if (isset($radio['checked']) && $radio['checked']) {
$data['label'] = $this->_templates->addClass($data['label'], 'selected', ['useIndex' => 'class']);
$data['label'] = $this->_templates->addClass($data['label'], 'selected');
}
}

0 comments on commit 3e05d22

Please sign in to comment.
You can’t perform that action at this time.