#105680Invalid localStorage treeState prevents dragging elements after a tree-node
Description
Example:
You have:
- Page 1
- Page 2
- Page 4
- Page 3
- Page 2
If you delete “Page 4” and end up with following tree:
- Page 1
- Page 2
- Page 3
Then you can’t drag an element at the end of “Page 2”, the only drag state that works is at the top of “Page 3”. If this element was the last in a tree branch, you would not be able to append new elements at the end of it.
This happens because on opening pages with children, that tree state is persisted, but if the child page doesn’t exist anymore (either deleted by myself or someone else) the invalid “expanded” state for the parent is still persisted. The tree fetches this and sets it regardless of it still being the case at the moment.
Reviews 2
History 25
-
Gerrit Code Review pushed patch set 1 for main to change 87168 status
NewUnder Review <span data-processor="relativetime" data-value="2024-11-22T11:10:41+00:00" > 11/22/24, 11:10 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87168 <span data-processor="relativetime" data-value="2024-11-22T11:11:56+00:00" > 11/22/24, 11:11 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87184 <span data-processor="relativetime" data-value="2024-11-22T14:57:25+00:00" > 11/22/24, 14:57 </span>
-
Andreas Nedbal commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2024-11-22T15:10:08+00:00" > 11/22/24, 15:10 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:35:39+00:00" > 08/12/25, 14:35 </span>
Applied in changeset commit:9a631f789c947b95a359983c7be801ffee687508.