We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76388be commit 4f3f5a7Copy full SHA for 4f3f5a7
src/keyboard_drag_strategy.ts
@@ -106,6 +106,9 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
106
private getConstrainedConnectionCandidate(
107
draggingBlock: BlockSvg,
108
): ConnectionCandidate | null {
109
+ if (!draggingBlock.previousConnection && !draggingBlock.outputConnection) {
110
+ return null;
111
+ }
112
// @ts-expect-error getLocalConnections is private.
113
const localConns = this.getLocalConnections(draggingBlock);
114
@@ -205,6 +208,7 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
205
208
};
206
209
}
207
210
});
211
+ if (potential == this.searchNode) break;
212
213
return candidateConnection;
214
0 commit comments