Search Issue Tracker

Active

Votes

0

Found in

2022.3.58f1

6000.0.37f1

6000.1.0b5

6000.2.0a3

Issue ID

UUM-97041

Regression

No

":focus" style will not be shown when the UI element is unparented and reparented and the "Focus()" method is called without the "Blur()" method being called

-

How to reproduce:
1. Open the “UiToolkitLayout.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Press the Space key on the keyboard multiple times
5. Observe the Button in the Game view

Expected result: The button has a red background
Actual result: The button has a gray background

Reproducible in: 2022.3.58f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a3

Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested

Notes:
- If “Blur()“ method is called before the “Focus()” method, pressing Space will yield expected results
- If the element is not unparented then reparented, pressing Space will yield the expected results
- The element is still considered the “focused“ element, but it’s just not visualized through the “:focus“ style
- Even when clicked manually, the button will not become red

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.