microsoft / microsoft/pxt-microbit

Value blocks want to connect to the hidden field in sound effect block

Open
#6,241 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Blocks P2
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:

  1. Go to https://makecode.microbit.org/#editor or https://makecode.microbit.org/beta#editor
  2. Drag the sound effect block to a project (or open this project)
  3. Drag a value block (e.g. compass heading block, or acceleration block) around the sound effect block
  4. See yellow line trying to connect the two blocks together despite the sound effect block being hidden.

Image

If you let the value block connect, it gets connected to the hidden field of the sound effect block like so:

Image

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.