microsoft / pxt

Microsoft MakeCode (PXT - Programming eXperience Toolkit)

Home Page:https://makecode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textdropdown

OffByOne37 opened this issue · comments

Bug Template

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://makecode.com/playground#field-editors-dropdowns'
  2. Change the word.fieldOptions.values to the correct code:
    Line 24:
    //% word.fieldOptions.values='[["hi"],["hello"]"'

According to https://github.com/microsoft/pxt/blob/master/docs/defining-blocks.md line 823) :
fieldOptions.values - a list of simple values to select from, like:
vehicles.fieldOptions.values='[["truck"], ["airplane"], ["cruise ship"]]'

  1. Click on 'run' (I hope it is called run, in german it is called "Ausführen")
  2. Add block to "on start"
  3. Click on dropdown

Expected behavior
I would expect each word do be there, but only each character is there. Moreover an error is thrown stating "Cannot find name "hello"".

Screenshots
grafik

Desktop (please complete the following information):

  • OS: Win11
  • Browser: Firefox (113.0.2), Edge

I noticed this bug when I was working on the playground. It's already been filed: #9192