Skip to content

Commit 098a3aa

Browse files
authored
fix: Add support for icons to getSourceBlockFromNode() (#9438)
1 parent ea6ecdc commit 098a3aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/keyboard_nav/marker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import {BlockSvg} from '../block_svg.js';
1616
import {Field} from '../field.js';
17+
import {Icon} from '../icons/icon.js';
1718
import type {IFocusableNode} from '../interfaces/i_focusable_node.js';
1819
import {RenderedConnection} from '../rendered_connection.js';
1920

@@ -66,6 +67,8 @@ export class Marker {
6667
return node.getSourceBlock() as BlockSvg;
6768
} else if (node instanceof RenderedConnection) {
6869
return node.getSourceBlock();
70+
} else if (node instanceof Icon) {
71+
return node.getSourceBlock() as BlockSvg;
6972
}
7073

7174
return null;

0 commit comments

Comments
 (0)