Fix insertion marker flickering on value inputs

This commit is contained in:
Rachel Fenichel
2019-02-15 12:03:45 -08:00
parent 442479581a
commit 44f83f1091

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;