microsoft / pxt

Microsoft MakeCode (PXT - Programming eXperience Toolkit)
https://makecode.com
MIT License
2.1k stars 584 forks source link

Cannot set the dropdown's value to an unavailable option. #9653

Closed jp-96 closed 1 year ago

jp-96 commented 1 year ago

PXT Bug - FieldUserEnum

Describe the bug

Console message:

Cannot set the dropdown's value to an unavailable option. Block type: radioMessageCode, Field name: MEMBER, Value: add1

The radio send block's dropdown item is unselected!

image

To Reproduce Steps to reproduce the behavior:

  1. Create new project on MakeCode for micro:bit
  2. Select radio-broadcast extention
  3. radio send block
  4. See console log

Expected behavior

message1 is selected and there is no warning message.

Screenshots

image

Edit source code on JavaScript image

When convert to Blocks, item is unselected. image

jp-96 commented 1 year ago

transfered: https://github.com/microsoft/pxt-arcade/issues/6037