From af571e27df73d0879ccf263a65d4455dd785ae45 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Mon, 17 Aug 2020 14:08:03 -0700 Subject: [PATCH] Call apply colour when inserting a field to a block that has already been renderered (#4183) --- core/input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/input.js b/core/input.js index ab6db5303..2b31c7315 100644 --- a/core/input.js +++ b/core/input.js @@ -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());