diff --git a/core/block_svg.js b/core/block_svg.js index 99dcc9cf1..cb8708cb7 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -605,7 +605,7 @@ Blockly.BlockSvg.prototype.createTabList_ = function() { var list = []; for (var i = 0, input; input = this.inputList[i]; i++) { for (var j = 0, field; field = input.fieldRow[j]; j++) { - if (field instanceof Blockly.FieldTextInput) { + if (field instanceof Blockly.FieldTextInput && field.isVisible()) { // TODO (#1276): Also support dropdown fields. list.push(field); }