Navigation group not collapsable from panel provider

As the title says, I cannot make a navigation group collapsable. For more context: I have created some resources, with names 'Status',' System', 'Definitions'. In the panel provider, I added the following lines of code, to make the groups collapsible on load. However, they always appear expanded on page load.

            ->navigationGroups([
                NavigationGroup::make('Status')
                    ->label('Status')
                    ->collapsed(true),
                // ->icon('heroicon-o-shopping-cart'),
                NavigationGroup::make()
                    ->label('System')
                    ->collapsed(true),
                // ->icon('heroicon-o-pencil'),
                NavigationGroup::make()
                    ->label('Definitions')
                    ->collapsed(true)
            ])
Was this page helpful?