Unity Issue Tracker - TextField using USS style becomes broken when no DisplayStyle.* is called
Closed
UUM-11809
TextField using USS style becomes broken when no DisplayStyle.* is called
Unity: UI Toolkit Controls
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2022.1.X
Cancelling since fix will go into 2022.2.
How to reproduce:
1. Open the attached "1410902.zip" project
2. Open the "AI Designer" window (AI Designer -> Tree Editor)
3. Add a new Variable to the Variables list
4. Double-click on the name of the Variable to modify it
Expected result: The name of the Variable gets focused/selected
Actual result: The name of the Variable doesn't get focused/selected
Reproducible with: 2022.1.13f1, 2022.2.0b4, 2023.1.0a6
Couldn't test with: 2020.3.38f1, 2021.3.8f1 - Deprecation causes errors preventing reproduction (Package scripts do not work)
Reproduced on: macOS Monterey 12.0.1
Note:
Package is used to show the issue visually that is happening in the Script
Uncommenting lines 125-126 and 134-135, shows the expected result
Different versions cause different issues:
2022.2.0b4, 2023.1.0a6: Once focused it becomes hard to break said focus of the TextField
2022.1.13f1: Once focused and attempting to un-focus, doesn't convert back from TextField to Label
Prioritise and Follow this issue
Have a workaround or additional info about this issue?