There was an error while loading. Please reload this page.
getSourceBlockFromNode()
1 parent 9362c33 commit 963f369Copy full SHA for 963f369
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