Module version(s) affected
3.1.x
Description
When the CMS has large number of pages it defaults to collapsing child menus. When the parent menu is expanded in some cases the current selected child page will show twice.
How to reproduce
- Create a large number of top level pages ~50
- Add child pages to a few top level pages
- Open sub menu and click on a child page
- Refresh the page
Expected:
The current item will have the selected class and shown with the parent expanded
Result:
The parent is not open and once expanded the child page is shown twice without either having the selected class
Possible Solution
I can see the getSubtree request returns only one item that looks correct.
<li id="record-45" data-id="45" data-recordtype="Page" class="jstree-leaf closed class-Page">
<ins class="jstree-icon font-icon-right-dir"> </ins>
<a href="admin/pages/edit/show/45" title="(Record type: Page) Child Page">
<ins class="jstree-icon font-icon-drag-handle"> </ins>
<span class="text">
<span class="jstree-recordicon record-icon font-icon-page class-Page"></span>
<span class="item" data-allowedchildren="[{"ClassName":"Page","Title":"Page","IconClass":"font-icon-page"},{"ClassName":"SilverStripe\\ErrorPage\\ErrorPage","Title":"Error Page","IconClass":"font-icon-p-error"},{"ClassName":"SilverStripe\\CMS\\Model\\RedirectorPage","Title":"Redirector Page","IconClass":"font-icon-p-redirect"},{"ClassName":"SilverStripe\\CMS\\Model\\VirtualPage","Title":"Virtual Page","IconClass":"font-icon-p-virtual"}]">Child Page</span>
</span>
</a>
</li>
Additional Context
No response
Validations
Module version(s) affected
3.1.x
Description
When the CMS has large number of pages it defaults to collapsing child menus. When the parent menu is expanded in some cases the current selected child page will show twice.
How to reproduce
Expected:
The current item will have the selected class and shown with the parent expanded
Result:
The parent is not open and once expanded the child page is shown twice without either having the selected class
Possible Solution
I can see the getSubtree request returns only one item that looks correct.
Additional Context
No response
Validations
silverstripe/installer(with any code examples you've provided)