mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Make the TabList exclude hidden fields (#2764)
* Make the TabList exclude hidden fields * Stop using private variable
This commit is contained in:
committed by
alschmiedt
parent
9cc0cb6881
commit
bcadd836b2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user