Fix insertion marker flickering on value inputs (PR #2295)

Merge from rachel-fenichel/bugfix/2255
This commit is contained in:
Rachel Fenichel
2019-02-15 12:43:45 -08:00
committed by Andrew n marshall
parent 61e86b84d3
commit 90f6832d06

View File

@@ -392,7 +392,9 @@ Blockly.Connection.prototype.isConnectionAllowed = function(candidate) {
case Blockly.OUTPUT_VALUE: {
// Don't offer to connect an already connected left (male) value plug to
// an available right (female) value plug.
if (candidate.isConnected() || this.isConnected()) {
if ((candidate.isConnected() &&
!candidate.targetBlock().isInsertionMarker()) ||
this.isConnected()) {
return false;
}
break;