Fix render issue with block factory connection dropdown (#4334)

This commit is contained in:
Monica Kozbial
2020-09-29 15:58:19 -07:00
committed by GitHub
parent dec7463a49
commit 311167bdc5

View File

@@ -87,7 +87,9 @@ Blockly.Blocks['factory_base'] = {
type.setShadow(true);
type.outputConnection.connect(this.getInput(outputType).connection);
type.initSvg();
type.render();
if (this.rendered) {
type.render();
}
},
updateShape_: function(option) {
var outputExists = this.getInput('OUTPUTTYPE');