Skip to content

Commit 296ad33

Browse files
authored
fix: Fix bug that allowed some invisible fields/inputs to be navigated to. (#8899)
1 parent d63a888 commit 296ad33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/keyboard_nav/ast_node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,16 @@ export class ASTNode {
461461
const inputs = block.inputList;
462462
for (let i = 0; i < inputs.length; i++) {
463463
const input = inputs[i];
464+
if (!input.isVisible()) continue;
465+
464466
const fieldRow = input.fieldRow;
465467
for (let j = 0; j < fieldRow.length; j++) {
466468
const field = fieldRow[j];
467469
if (field.isClickable() || ASTNode.NAVIGATE_ALL_FIELDS) {
468470
return ASTNode.createFieldNode(field);
469471
}
470472
}
471-
if (input.connection && input.isVisible()) {
473+
if (input.connection) {
472474
return ASTNode.createInputNode(input);
473475
}
474476
}

0 commit comments

Comments
 (0)