Fix checkbox while listening. Fixes #40

This commit is contained in:
Jeff Nusz 2017-03-17 12:41:05 -07:00
parent c9c310f13b
commit 15be652664

View File

@ -58,8 +58,10 @@ class BooleanController extends Controller {
if (this.getValue() === true) {
this.__checkbox.setAttribute('checked', 'checked');
this.__checkbox.checked = true;
this.__prev = true;
} else {
this.__checkbox.checked = false;
this.__prev = false;
}
return super.updateDisplay();