Permalink
Browse files

Unset attribute instead of exclude it.

  • Loading branch information...
1 parent 88100a4 commit 80d3a0e931315947169c80ab196af4838d55cb06 @markstory markstory committed Jan 12, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/View/Input/Checkbox.php
@@ -53,9 +53,11 @@ public function render($data) {
if ($this->_isChecked($data)) {
$data['checked'] = true;
}
+ unset($data['selected']);
+
$attrs = $this->_templates->formatAttributes(
$data,
- ['name', 'value', 'selected']
+ ['name', 'value']
);
return $this->_templates->format('checkbox', [

0 comments on commit 80d3a0e

Please sign in to comment.