When collapsed, toString was referencing text_. Using getText instead. (#3150)

This commit is contained in:
Sam El-Husseini
2019-10-03 15:26:41 -07:00
committed by GitHub
parent e5ec726253
commit 7839512f0e

View File

@@ -1353,7 +1353,7 @@ Blockly.Block.prototype.toString = function(opt_maxLength, opt_emptyToken) {
var text = [];
var emptyFieldPlaceholder = opt_emptyToken || '?';
if (this.collapsed_) {
text.push(this.getInput('_TEMP_COLLAPSED_INPUT').fieldRow[0].text_);
text.push(this.getInput('_TEMP_COLLAPSED_INPUT').fieldRow[0].getText());
} else {
for (var i = 0, input; input = this.inputList[i]; i++) {
for (var j = 0, field; field = input.fieldRow[j]; j++) {