scratchfoundation / scratchfoundation/scratch-blocks
When you create a new variable, the variable chosen in the variable block dropdowns should change to choose that
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Expected Behavior
I create a new variable. I drag out the set or change block and place them in my program.
I expect these to be setting and changing my variable!
Actual Behavior
...ugh, the dropdown has picked a different variable... whichever variable happens to come first alphabetically.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the variable-creation flow and dragging out the set or change block described in the issue, then trace the code that populates and selects its variable dropdown. Done means the dropdown selects the newly created variable rather than the first variable alphabetically, with the existing behavior verified after the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100