Not sure if I ran into a bug with the dropdown control or if I’m just not using it quite right. I’m trying to populate it and then set the index, my code looks like this:
TestDropdown.options.Clear();
TestDropDown.options.Add(newDropdown.OptionData(“test 1”));
TestDropDown.options.Add(newDropdown.OptionData(“test 2”));
TestDropDown.value = 0;
Does this look like the expected way of populating and then setting the index to the first item in the list? That results in seeing Option A, in the drop down list as the selected item (the prepopulated example data), if you click the drop down though it’s properly populated and thinks it has test 1 selected, my guess is that there is a trigger on value changing to clear the displayed data, but since value was likely 0 before it didn’t send OnPropertyChangedEvent, setting value to 1 properly displays test 2 instead of the Option A.
I wanted to double check though that I’m doing this correctly since if there’s a different way that would clear the displayed text I can switch to using that.