This commit is contained in:
Sam El-Husseini
2019-10-09 10:10:12 -07:00
committed by GitHub
parent e7859db8c7
commit 4b35320c86

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_();
}
};
/**