mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
When collapsed, toString was referencing text_. Using getText instead. (#3150)
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user