'The menu collapses completely when you select any item in the Templates Sakai PrimeNG submenu

I'm studying Sakai Templates from Priming. The source code of this Templates is here sakai-ng There is a submenu in the side menu. In which I added the transition to the page

items: [
    {label: 'Submenu 1', icon: 'pi pi-fw pi-bookmark',
        items: [
            {
                label: 'Submenu 1.1', icon: 'pi pi-fw pi-bookmark', routerLink: ['/pages/timeline']
            },
            {
                label: 'Submenu 1.2', icon: 'pi pi-fw pi-bookmark',routerLink: ['pages/crud']
            },
        ]
    },

Before Submenu 1.1 was selected

And when you select any of the submenu items Submenu 1.1 or Submenu 1.2 - the entire Submenu 1 menu collapses completely.

After selecting Submenu 1.1

Which is very inconvenient. Is there any option in this menu to prevent it from collapsing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source