We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getSourceBlockFromNode()
1 parent ea6ecdc commit 098a3aaCopy full SHA for 098a3aa
1 file changed
core/keyboard_nav/marker.ts
@@ -14,6 +14,7 @@
14
15
import {BlockSvg} from '../block_svg.js';
16
import {Field} from '../field.js';
17
+import {Icon} from '../icons/icon.js';
18
import type {IFocusableNode} from '../interfaces/i_focusable_node.js';
19
import {RenderedConnection} from '../rendered_connection.js';
20
@@ -66,6 +67,8 @@ export class Marker {
66
67
return node.getSourceBlock() as BlockSvg;
68
} else if (node instanceof RenderedConnection) {
69
return node.getSourceBlock();
70
+ } else if (node instanceof Icon) {
71
+ return node.getSourceBlock() as BlockSvg;
72
}
73
74
return null;
0 commit comments