From 15be652664b2a5a896299e535737ab2bed0c10eb Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Fri, 17 Mar 2017 12:41:05 -0700 Subject: [PATCH] Fix checkbox while listening. Fixes #40 --- src/dat/controllers/BooleanController.js | 2 ++ 1 file changed, 2 insertions(+) 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();