microsoft / microsoft/pxt-microbit
Value blocks want to connect to the hidden field in sound effect block
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
Value blocks want to connect to the hidden field in sound effect block
To Reproduce
Steps to reproduce the behavior:
- Go to https://makecode.microbit.org/#editor or https://makecode.microbit.org/beta#editor
- Drag the sound effect block to a project (or open this project)
- Drag a value block (e.g. compass heading block, or acceleration block) around the sound effect block
- See yellow line trying to connect the two blocks together despite the sound effect block being hidden.
If you let the value block connect, it gets connected to the hidden field of the sound effect block like so:
Expected behavior
Expect the value blocks to not try and connect to the sound effect block when the field is hidden.
cc: @microbit-robert who found this issue
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 issue in the MakeCode micro:bit editor using the linked project, then inspect the sound effect block and its hidden field behavior. Confirm the fix by ensuring value blocks no longer show a connection indicator or attach to that field when it is hidden.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100