Search Issue Tracker
Fixed in 1.0.0
Votes
0
Found in [Package]
1.0.0-preview.18
Issue ID
1379300
Regression
No
[UIToolkit] Button can be activated with enter key when it is removed
Reproduction steps:
1. Open the user's attached "UIToolkitUnfocusIssue-2021.2.zip" project
2. Open the "SampleScene" Scene and Enter the Play mode
3. Hover over the "Remove" button
4. Press the Enter key
5. "Button Clicked" and "Button removed" messages appear in the Console window
6. Press the enter key again
7. Observe the Console window
Expected result: No messages appear
Actual result: The "Button Clicked" message appears
Reproducible with: 1.0.0-preview.17, 1.0.0-preview.18 (2020.3.21f1, 2021.1.27f1), 1.0.0 (2021.2.1f1, 2022.1.0a13)
Couldn't test with: 1.0.0-preview.17, 1.0.0-preview.18 (2019.3.31f1) (UI Toolkit package not available)
Notes:
-To reproduce on 2020.3.21f1 and 2021.1.27f1 create a new project, import UI Toolkit package, recreate the UIDocument Game Object, replace Standalone Input Module Component with InputSystemUIInputModule, and import the assets from the original project
Comments (1)
-
hafu985
Feb 14, 2024 10:39
Unity 2022.3.16f
This problem still exist.
I reuse my elems and they didn`t unfocus automatically when were removed from parent.
Solution also invoke ele.Blur() after event DetachFromPanelEvent;
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
- "InvalidOperationException: Trying to SetRenderAttachment on a texture..." exception is thrown when using the depth back buffer as an input attachment in Renderer Feature on Vulkan Graphics API
- [HDRP Wizard] Reload Window fails to reload the HDRP Wizard window
- [HDRP Wizard] Fix All button is not presented using the macOS system
- "InvalidCastException: Specified cast is not valid" is thrown when Generating Lighting with "Virtual Offset" enabled in APV, and a static Skinned Mesh Rendered with a Mesh Filter Component is in the Scene
- TMP material doesn't update when using Localized Property to change the font assets
Resolution Note (fix version 1.0.0):
Fixed in 2022.2.0a6