Closed
Description
Expected Behavior
When dragging a block around and holding it close to other blocks so that the connection preview shows, getConnections_ should return the same in all situations.
Actual Behavior
When dragging a block around and holding it close to other blocks so that the connection preview shows, getConnections_ returns different values depending on the situations. An exception is thrown because the connection lists of blocks do not match, while they should actually be able to connect.
Steps to Reproduce
Using vertical_playground.html, in the "tests" folder:
- Drag a 1st block with a "next" connection from the flyout and place it at the top of the workspace;
- Drag a 2nd block with a "previous" connection from the flyout and place it at the bottom of the workspace. Do not connect it to the first block;
- Drag a 3rd block, with both "previous" and "next" connections, with no input, and place it on the workspace in the middle of the 2 previous blocks, without connecting any of them.
- Drag a 4th block, with both "previous" and "next" connections, this time WITH an input, and place it on the workspace, connecting it to the 3rd block, before or after.
- Start dragging the group of blocks composed of blocks 3 and 4.
- Without releasing the blocks, drag the group so that the connection preview appears below the block placed at the top of the workspace (block 1).
- Still without releasing the blocks, drag the group so that the connection preview above the block placed at the bottom of the workspace (block 2)
- Notice the no connection preview is show, and that there is an exception thrown in the console: "Uncaught Connection lists did not match in length."
Operating System and Browser
Mac OS 10.11.6
Chrome Version 58.0.3029.110 (64-bit)