Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.4
2019.4.4f1
2020.2
Issue ID
1265256
Regression
No
Dropdown value can be quickly changed when bool 'interactable' is set to false
How to reproduce:
1. Open the attached project (case-1265256.zip)
2. Enter Play Mode
3. In the Game view click on the Dropdown displaying 'Option A'
4. Select the Dropdown value 'Option B'
5. Before the Dropdown closes and becomes not interactable quickly select 'Option A'
Expected result: after selecting 'Option B' the Dropdown immediately becomes not interactable
Actual result: it is still possible to select another value before the Dropdown becomes not interactable
Reproducible with: 2018.4.26f1, 2019.4.6f1, 2020.1.0f1, 2020.2.0a19
Notes:
Dropdown.onValueChanged is called twice when the issue occurs
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2020.2.9f1):
Setting the dropdown.interactable = false is different then setting each button in the dropdown to false. The issue here is that the dropdown comprises of multiple elements (buttons) that are still interactable. To fix this you would need to point each dropdown element to each other dropdown element so when its pressed it sets those to not interactable.