Steps to reproduce:
- Create and open a new project
- Create and instantiate a new UXML file in the Hierarchy
- Open the UXML file in UI Viewport
- Create a VisualElement in the Hierarchy
- Select it
- Hold CTRL+D for a few seconds and observe
Actual results: Multiple duplicated elements are selected
Expected results: Only the latest duplicated element is selected
Reproducible with versions: 6000.6.0b1, 6000.6.0b8, 6000.7.0a1, 6000.7.0a4
Can’t test with versions: 6000.0.81f1, 6000.3.22f1, 6000.5.8f1, 6000.6.0a7 (Unable to duplicate UI elements in editor Hierarchy)
Tested on (OS): Windows 11 Pro (25H2)