Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Persona Bar > Manage > Pages > Expand/Collapse All Fails After Moving The Only Child Item Away #1122

Closed
6 tasks done
kkadir opened this issue Aug 20, 2019 · 1 comment
Closed
6 tasks done
Labels
bug Something isn't working
Milestone

Comments

@kkadir
Copy link

kkadir commented Aug 20, 2019

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:

  1. Log in as Super/Host user to Platform.
  2. Navigate to Persona Bar > Manage > Pages.
  3. Click on the Add Multiple Pages button.
  4. Input 1 Parent page and child page.
  5. Click the "Add New Page(s)" button.
  6. Observe that the new page(s) is/are added to the "Pages List" tree-view.
  7. Expand the newly added page from the "Pages List" tree-view.
  8. Drag the child page under any other page.
  9. Click on the "Collapse All" link on top of the "Pages List" tree-view.

Current result

  1. All items in the "Pages List" tree-view are collapsed
  2. The "Collapse All" link is not changed as "Expand All"
  3. Keeping clicking on the unchanged "Collapse All" link does not have any effect.

Expected result

  1. All items in the "Pages List" tree-view are collapsed
  2. The "Collapse All" is changed as "Expand All"
  3. Keeping clicking on the "Collapse All" or "Expand All" link is collapsing or expanding all "Pages List" tree-view items respectively.

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;

Item-01
Item-02
    > Item-02-01
    > Item-02-02
Item-03
    > Item-03-01

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

  • 9.4.0 RC

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge
@valadas
Copy link
Contributor

valadas commented Sep 29, 2019

Merged

@valadas valadas closed this as completed Sep 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants