- Home /
Unable to reset dropdown value to -1
I have a dropdown for selecting your country. When the user goes to the page, the dropdown's value is initially -1, with nothing selected. When the user selects anything, navigates away from the page, and navigates back, I set the value to -1, to try to unselect an option in the dropdown. However, this just sets it to the first country option.
This seems like a bug to me, lemme know if there's a good way around this. Thanks.
Answer by Vandarthul · May 20, 2017 at 09:21 AM
Just set first option to be "Select Country" and check that.
Your answer
Follow this Question
Related Questions
Unity Dropdown - can't render unity dropdown option list in world space 0 Answers
Canvas dropdown is buggy and i don't know how to solve it ;-; 0 Answers
ALWAYS SHOW DROPDOWN LIST 0 Answers
4.6 UI Canvas is smaller than normal 1 Answer
Animation not playing on game object activated by script 3 Answers