mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Call apply colour when inserting a field to a block that has already been renderered (#4183)
This commit is contained in:
@@ -105,6 +105,7 @@ Blockly.Input.prototype.insertFieldAt = function(index, field, opt_name) {
|
||||
field.setSourceBlock(this.sourceBlock_);
|
||||
if (this.sourceBlock_.rendered) {
|
||||
field.init();
|
||||
field.applyColour();
|
||||
}
|
||||
field.name = opt_name;
|
||||
field.setVisible(this.isVisible());
|
||||
|
||||
Reference in New Issue
Block a user