diff --git a/src/dat/controllers/BooleanController.js b/src/dat/controllers/BooleanController.js index 8c06d89..27fa527 100644 --- a/src/dat/controllers/BooleanController.js +++ b/src/dat/controllers/BooleanController.js @@ -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();