Skip to content

Commit e4ad0d9

Browse files
authored
fix: Don't try to move blocks onto shadow block connections. (#729)
1 parent b38e758 commit e4ad0d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/keyboard_drag_strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
5454
this.allConnections.push(
5555
...topBlock
5656
.getDescendants(true)
57+
.filter((block: BlockSvg) => !block.isShadow())
5758
.flatMap((block: BlockSvg) => block.getConnections_(false))
5859
.sort((a: RenderedConnection, b: RenderedConnection) => {
5960
let delta = a.y - b.y;

0 commit comments

Comments
 (0)