Skip to content

Custom block arguments duplicate when they shouldn't #3484

@nimeratus

Description

@nimeratus

Expected Behavior

The argument blocks duplicate only if they are dragged out from a procedures_prototype block.

Actual Behavior

All argument blocks duplicate, after doing any of these:

  • switching to another sprite and then back
  • turning high contrast on/off
  • changing the language
  • saving the project and then opening it

Also, in the first 3 cases a duplicating argument block appears that isn't connected to anything

Steps to Reproduce

  1. Go to 'https://scratchfoundation.github.io/scratch-editor/develop/scratch-gui/index.html'
  2. Create a custom block with an input
  3. Add a "set variable" block and drag an argument block into it
  4. Select the Stage and then select Sprite1
  5. Try to remove the argument block from the "set variable"

Screenshots

x-custom-args-duplicating.webm

System Details

Windows 10, Chrome 132

Metadata

Metadata

Assignees

No one assigned

    Labels

    High PrevalenceHappens more frequently, with higher probability, in more situations, or to more users.Medium SeverityThis is somewhat disruptive, but there are workarounds, and the harm isn't permanent.released

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions