The issue arises when the only child item is dragged away from any parent item. For instance, assume that we have a page list structure like the following;
When Item-02-01 is dragged and dropped under Item-01, there won't be any issues as Item-02 will still have Item-02-02 as a child. But when Item-03-01 is dragged and dropped to anywhere, the issue will be observed as the Item-03 parent item is now without a child item.
Description of bug
"Expand/Collapse All" fails after moving the only child item away from a parent node.
Steps to reproduce
List the steps to reproduce the behavior:
Current result
Expected result
Screenshots
Issue Reproduction Video
Error log
N/A
Additional context
The issue arises when the only child item is dragged away from any parent item. For instance, assume that we have a page list structure like the following;
When Item-02-01 is dragged and dropped under Item-01, there won't be any issues as Item-02 will still have Item-02-02 as a child. But when Item-03-01 is dragged and dropped to anywhere, the issue will be observed as the Item-03 parent item is now without a child item.
Affected version
Affected browser