Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.58f1
6000.0.43f1
6000.1.0b6
6000.2.0a3
6000.3.0a1
6000.4.0a1
6000.5.0a1
Issue ID
UUM-97604
Regression
No
Automatically unfocuses when focusing and DropdownField is open
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Click drop-down so the menu is open
5. Click “Space“ key
6. Observe the Console
Expected result: Focus out Message does not exist
Actual result: Message “Focus Out: Button SomeButton (x:4.00, y:2.00, width:1292.67, height:40.00) world rect: (x:4.00, y:2.00, width:1292.67, height:40.00) to: “ is present
Reproducible with: 2022.3.58f1, 6000.0.38f1, 6000.1.0b6, 6000.2.0a3
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- The issue is most likely caused by GenericDropdownMenu.Hide and its giveFocusBack implementation
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Dropdown fields have a delayed focus call causing the issue the user is experiencing. Changing that behavior is a risk for other regressions, so we don't plan on changing it. The workaround is to schedule the Focus call as well: button.schedule.Execute(() => button.Focus());