Skip to content

Commit

Permalink
Fix insertion marker flickering on value inputs (PR #2295)
Browse files Browse the repository at this point in the history
Merge from rachel-fenichel/bugfix/2255
  • Loading branch information
rachel-fenichel authored and AnmAtAnm committed Feb 15, 2019
1 parent 61e86b8 commit 90f6832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90f6832

Please # to comment.