Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.1.13f1

2022.2.0b4

2023.1.0a6

2023.2.0a1

Issue ID

UUM-11809

Regression

No

TextField using USS style becomes broken when no DisplayStyle.* is called

-

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

  1. Resolution Note:

    Currently this is expected behaviour, that is you cannot focus an element that is currently display:none". Using USS, switching back to visible is asynchronous and happens after the request to focus. It is required to have to employ inline styles or alternatively asynchronously make the Focus() call

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.