Steps to reproduce:
- Create and open a new project
- In Hierarchy, 'Right-click -> UI Toolkit -> Standard Elements -> Visual Element'
- Press F2 to rename the Visual Element
- Name it to "Hi"
- Press F2 to rename it again
- Press the right-arrow to append to the existing name (will display '#Hi')
- Append "1" to the name and press Enter (should be '#Hi1')
- Observe the Hierarchy
Actual results: The Visual Element is named '#Hi'
Expected results: The Visual Element is named '#Hi1' or a warning is thrown and is named '#Hi'
Reproducible with versions: 6000.6.0b1, 6000.6.1f1, 6000.7.0a6
Can’t test with versions: 6000.0.82f1, 6000.3.23f1, 6000.5.11f1, 6000.6.0a7 (No UI stage in Hierarchy)
Tested on (OS): Windows 11 Pro (25H2)