Skip to content

Labeled dropdown menu doesn't seem to work #106

Open
@EmberHeartshine

Description

@EmberHeartshine

When defining a variable like so:

someVariable = 2; //[2:Yes,0:No]

The dropdown menu seems to only display correctly on first load, but while selecting the options works, the visible selection does not change. (For example, selecting "No" would make "Yes" appear in the dropdown, but the correct value of 2 is assigned to someVariable so it previews and renders correctly.)

OTOH, when editing that dropdown, the labels disappear entirely and it becomes a selector type of the actual value. (For example, the dropdown becomes a spinbox).

Here's a simple example file that should demonstrate what I mean. Try to edit the barrelExtraDiameter variable.

The first load issue does not occur if the dropdown is unlabeled. See this example. Change the insertStop variable using the Customizer and it works correctly. However, editing the parameters of the dropdown still cause a problem (In this case, adding a "Maybe" to the block makes the dropdown turn into a text box).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions