mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Merge pull request #655 from google/RoboErikG-chkBox-uc
Make field checkbox setValue case insensitive
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user