From ec035f19d30c6ebc807101813f4a69c0943217f9 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Mon, 9 Dec 2019 13:10:24 -0800 Subject: [PATCH] Count all fields when deciding whether or not a full text field should be used. (#3492) --- core/field_textinput.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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++;