pxt icon indicating copy to clipboard operation
pxt copied to clipboard

textdropdown

Open OffByOne37 opened this issue 2 years ago • 2 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

OffByOne37 avatar Jun 08 '23 13:06 OffByOne37

@kimprice @thsparks @jwunderl

abchatra avatar Jun 13 '23 02:06 abchatra

I noticed this bug when I was working on the playground. It's already been filed: https://github.com/microsoft/pxt/issues/9192

kimprice avatar Jun 20 '23 20:06 kimprice