google/blockly

Dropdown field value doesn't update when options are dynamic

Closed this issue · 2 comments

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

I created a block that has a dynamic option list. Let's say the first option of this dynamic array changes and the dropdown had the first option selected. Its field value should change too, but it doesn't. Example:

image

Expected:

image

Strangely, the dropdown values change, it's just the field value that doesn't

image

Reproduction steps

  1. Create dropdown block with dynamic options
  2. Select an option
  3. Edit the array that contains that options

Stack trace

No response

Screenshots

No response

Browsers

Chrome desktop

Hi @Nrosa01 this is not a bug in Blockly so I'm going to close the issue. Someone will follow up with you on the forum soon. Thanks!