mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fix checkmarks when the variable dropdown is open.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user