Make the TabList exclude hidden fields (#2764)

* Make the TabList exclude hidden fields

* Stop using private variable
This commit is contained in:
Roy van Schaijk
2019-08-01 20:14:52 +02:00
committed by alschmiedt
parent 9cc0cb6881
commit bcadd836b2

View File

@@ -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);
}