How to reproduce:
1. Open the attached project “PosConBug.zip“
2. Open the “SampleScene“ Scene
3. Select the “Cube“ GameObject in the Hierarchy
4. Expand the Constraint Settings
5. Deselect the “Cube“ GameObject and reselect it
Expected result: The Constraint Settings stay expanded
Actual result: The Constraint Settings are folded back
Reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.2.13f1, 2023.1.0b11, 2023.2.0a9
Reproduced on: macOS 13.2.1 (Intel), Windows 10 (by reporter)