How to reproduce:
- Open the attached "IN-149611" project
- Open Assets > Scenes > “NewUXMLTemplate.uxml” in UI Builder
- In the top middle-part or UI Builder locate “Viewport” > “Built-in Default Runtime Theme”
- Change theme to any “App UI” theme
- In UI Builder Hierarchy expand “NewUXMLTemplate.uxml” > “Tabs” > “appui-tabs_scroll-view” > “unity-content-and-vertical-scroll-container” > “unity-content-viewport” > “unity-content-container” > “appui-tabs_container”
- Select all “TabItem” elements in UI Builder Hierarchy
- Delete them
- Observe the Console
Actual result: "ArgumentException: Cannot scroll to a VisualElement that's not a child of the ScrollView content-container" is logged
Expected result: The TabItems are removed and no exception is logged
Reproducible with: 2.0.0-pre.16 (6000.0.0f1); 2.2.2, 3.0.0-pre.1 (6000.6.0f1, 6000.7.0a6)
Not reproducible with: 2.0.0-pre.15 (6000.0.0f1)
Reproducible on: Windows 11 (25H2), Windows 10 (by user)
Not reproducible on: No other environments tested