Search Issue Tracker

Won't Fix

Votes

0

Found in

2020.3

2021.2

2022.1

2022.1.0a12

Issue ID

1374730

Regression

No

ReorderableList item is being returned with wrong "isExpanded" property when doing Undo after deleting it

IMGUI

-

How to reproduce:
1. Open the "ReorderableList" project
2. Open "ReorderableListBug" Scene (Assets > ReorderableListBug > ReorderableListBug)
3. In the Hierarchy window select "Bug" GameObject
4. In the Inspector window Expand "Element 2"
5. Select "Element 0" and press "-" sign
6. Observe the List
7. Press Edit > Undo remove Element From Array
8. Repeat 6th step

Expected result: After the 5th step just the "Element 1" is expanded, after the 7th step just the "Element 2" is expanded
Actual result: After the 5th and 7th steps "Elements 1" and "Element 2" are expanded

Reproducible with: 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Could not test with: 2019.4.34f1 (Errors after downgrade)

  1. Resolution Note (2022.2.X):

    Correct restoration of element expand state is a design limitation of the ReorderableList control

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.