Skip to content

Opening controls_if block mutator dislocates attached blocks #6953

@cpcallen

Description

@cpcallen

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

Opening the mutator in a controls_if (if/elseif/else) block will cause any blocks attached to the elseif and else inputs of the block to be temporarily dislocated.

Reproduction steps

In the Blockly playground, in v9.3.1:

  1. Add an "if" block.
  2. Open the block's mutator and add "elseif" and "else" clauses.
  3. Close the mutator.
  4. Add blocks to all the blocks inputs:
    Screenshot 2023-04-05 at 13 50 42
  5. Open the mutator and observe the blocks attached to the elseif and else inputs have been dislocated:
    Screenshot 2023-04-05 at 13 53 42
  6. Drag the block and observe the blocks snap back to their correct location:
    Screenshot 2023-04-05 at 13 53 54

Stack trace

Nothing in the console.

Browsers

Chrome desktop

Additional info

Discovered via this report in the Blockly forum.

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrong

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions