I made a bug report already but I’d like to know if this is a known issue and/or can be replicated by anyone and if there is a known way to work around it. Haven’t found mention of this despite searching.
Make a basic project with one gameobject and add a UIDocument to it and set up its style/panel etc.
Add a dropdown field to the UIDocument with UIBuilder and three generic choices. No scripts are needed to repro.
Play your project in the editor
Using only the keyboard, press enter on the dropdownfield.
Do not select any items, press enter again to backout. Index out of range exception will be thrown.
Using only the gamepad, press the navigation submit button to open the dropdown field.
Do not select any items, press the navigation submit button again to backout. Index out of range excpetion will be thrown.
Compare to mouse behavior:
Click with the mouse to open open dropdown field.
Do not select any items, click elsewhere in the scene to back out and cause the dropdownfield to close. No exception is thrown and the action is properly cancelled.
Excepted Result:
Canceling the dropdownfield open action via keyboard or gamepad without making a selection should not throw an exception and just revert back to its prior state.
