Commit 7c7c9bdb authored by Evan W. Patton's avatar Evan W. Patton Committed by Susan Rati Lane

Only connect statement blocks in typeblock if target empty (#1925)

Change-Id: I3d1846ce60d6b2a4cfedaa4be2895500aad0ee31
parent bbf9c58c
...@@ -600,7 +600,8 @@ Blockly.TypeBlock.prototype.connectIfPossible = function(blockSelected, createdB ...@@ -600,7 +600,8 @@ Blockly.TypeBlock.prototype.connectIfPossible = function(blockSelected, createdB
} }
} }
} }
else { // Only attempt a connection if the input is empty
else if (!inputList[i].connection.isConnected()) {
createdBlock.previousConnection.connect(inputList[i].connection); createdBlock.previousConnection.connect(inputList[i].connection);
} }
} catch(e) { } catch(e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment