Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeled dropdown menu doesn't seem to work #106

Open
EmberHeartshine opened this issue Jan 4, 2025 · 1 comment
Open

Labeled dropdown menu doesn't seem to work #106

EmberHeartshine opened this issue Jan 4, 2025 · 1 comment

Comments

@EmberHeartshine
Copy link

EmberHeartshine commented Jan 4, 2025

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).

@EmberHeartshine
Copy link
Author

Update: I amend my previous report. Editing the file at all causes the dropdowns to stop working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant