Fix checkmarks when the variable dropdown is open.

This commit is contained in:
Rachel Fenichel
2017-12-06 16:07:21 -08:00
parent be4054b593
commit 7e411b5428

View File

@@ -56,6 +56,7 @@ Blockly.FieldVariable = function(varname, opt_validator, opt_variableTypes) {
this.defaultVariableName = (varname || '');
this.defaultType_ = '';
this.variableTypes = opt_variableTypes;
this.value_ = null;
};
goog.inherits(Blockly.FieldVariable, Blockly.FieldDropdown);
@@ -155,6 +156,7 @@ Blockly.FieldVariable.prototype.setValue = function(id) {
this.sourceBlock_, 'field', this.name, oldValue, variable.getId()));
}
this.variable_ = variable;
this.value_ = id;
this.setText(variable.name);
};