scratchfoundation / scratchfoundation/scratch-blocks

Deleting a hat block deletes the whole stack

Open
#3,655 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

spork
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Deleting a hat block — or any top-of-stack block — via right-click then Delete Block also deletes every block connected below it, instead of removing just the top block. Keyboard Delete/Backspace has the same bug. Expected: only the top block is removed and the stack below stays. Undo works if you click the workspace first.

A community fix is open in scratchfoundation/scratch-blocks#3571 (CI clean), awaiting review and testing time.

Reported by @Joeclinton1, who also opened the fix PR.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing deletion through the right-click Delete Block action and Keyboard Delete/Backspace, then review the community fix in scratchfoundation/scratch-blocks#3571. Done means deleting a hat or top-of-stack block leaves the connected stack intact, while undo still works after clicking the workspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.