This commit is contained in:
Sam El-Husseini
2019-10-09 11:16:26 -07:00
committed by GitHub
parent b8ce62dec9
commit 31db570cd1

View File

@@ -557,8 +557,10 @@ Blockly.Field.prototype.updateColour = function() {
* @protected
*/
Blockly.Field.prototype.render_ = function() {
this.textContent_.nodeValue = this.getDisplayText_();
this.updateSize_();
if (this.textContent_) {
this.textContent_.nodeValue = this.getDisplayText_();
this.updateSize_();
}
};
/**