How to reproduce:
1. Open the user attached "Inspector Automatically Expands.zip" project
2. Select the "Character" GameObject
3. Collapse the List Dropdown Tabs in the Inspector Window
4. Deselect the "Character" GameObject
5. Select the "Character" GameObject
Expected result: The Lists stay collapsed
Actual result: The Lists are expanded
Reproducible with: 2021.3.2f1, 2022.1.0f1, 2022.2.0a12
Couldn't test with: 2019.4.38f1, 2020.3.34f1 (Unfixable compilation errors due to unsupported code)
Note:
- Reproducible on a new project