diff --git a/core/field_textinput.js b/core/field_textinput.js index 41ca7bd1a..23e958b16 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -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++;