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 4f3f5a7 commit 4f0fb12Copy full SHA for 4f0fb12
src/keyboard_drag_strategy.ts
@@ -106,11 +106,11 @@ 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);
+ if (localConns.length == 0) {
+ return null;
+ }
114
115
let candidateConnection = this.findTraversalCandidate(
116
draggingBlock,
0 commit comments