Skip to content

Commit

Permalink
bugfix for checkbox not updating correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Frame committed Mar 21, 2014
1 parent 60f4865 commit 873008d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Checkbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ ctx.registerWidget('Checkbox', module.exports = InlineWidget.extend(function(_sc
v = !!v;
if (v !== this._value) {
this._value = v;
if (v) {
this._root.setAttribute('checked', 'checked');
} else {
this._root.removeAttribute('checked');
}
this._root.checked = v;
return true;
} else {
return false;
Expand Down

0 comments on commit 873008d

Please sign in to comment.