Skip to content

Commit

Permalink
Unset attribute instead of exclude it.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 12, 2014
1 parent 88100a4 commit 80d3a0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/View/Input/Checkbox.php
Expand Up @@ -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', [
Expand Down

0 comments on commit 80d3a0e

Please sign in to comment.