From 5b3eb8a9e5d939221ad95f0c7573fc157ff54946 Mon Sep 17 00:00:00 2001 From: RoboErikG Date: Wed, 28 Sep 2016 16:25:24 -0700 Subject: [PATCH] Update field_checkbox.js --- core/field_checkbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_checkbox.js b/core/field_checkbox.js index 638aba940..bedd9d921 100644 --- a/core/field_checkbox.js +++ b/core/field_checkbox.js @@ -88,7 +88,7 @@ Blockly.FieldCheckbox.prototype.getValue = function() { * @param {string} strBool New state. */ Blockly.FieldCheckbox.prototype.setValue = function(strBool) { - var newState = (strBool == 'TRUE'); + var newState = (strBool.toUpperCase() == 'TRUE'); if (this.state_ !== newState) { if (this.sourceBlock_ && Blockly.Events.isEnabled()) { Blockly.Events.fire(new Blockly.Events.Change(