Count all fields when deciding whether or not a full text field should be used. (#3492)

This commit is contained in:
Sam El-Husseini
2019-12-09 13:10:24 -08:00
committed by GitHub
parent fee606e2e0
commit ec035f19d3

View File

@@ -154,10 +154,8 @@ Blockly.FieldTextInput.prototype.initView = function() {
// Count the number of fields, excluding text fields
for (var i = 0, input; (input = this.sourceBlock_.inputList[i]); i++) {
for (var j = 0, field; (field = input.fieldRow[j]); j++) {
if (!(field instanceof Blockly.FieldLabel)) {
nFields ++;
}
for (var j = 0; (input.fieldRow[j]); j++) {
nFields ++;
}
if (input.connection) {
nConnections++;