You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When opening a new window with a dropdown widget, the dropdown is always initialised with the first item selected. If selectedIndex is set to an index other than 0 before the window is created, it will immediately be set to 0.
This doesn't match the behaviour of other widgets, which do seem to respect initial values (i.e. ColourPickerParams.color, CheckboxParams.checked, SpinnerParams.value etc.)
Describe the bug
When opening a new window with a dropdown widget, the dropdown is always initialised with the first item selected. If selectedIndex is set to an index other than 0 before the window is created, it will immediately be set to 0.
This doesn't match the behaviour of other widgets, which do seem to respect initial values (i.e. ColourPickerParams.color, CheckboxParams.checked, SpinnerParams.value etc.)
To reproduce
Example:
The window opens with "Item 1" selected.
Console output is "0", indicating the dropdown widget has written 0 to the store.
Expected behavior
When a valid selectedIndex is specified, the dropdown should be initialised with the correct item pre-selected.
The text was updated successfully, but these errors were encountered: