Closed VanDerRomio closed 8 months ago
I added:
->navigationGroups([
NavigationGroup::make('Users')
->collapsed(),
])
Cannot reproduce:
https://github.com/filamentphp/filament/assets/41773797/afcef2a5-222c-4854-9c6a-5136e814c061
if I set it to "collapsed" - then it has to be collapsed every time i reload the page in the browser, and it doesn't
That is not what the behaviour does, it is collapsed when you first visit the page, and then your preference is remembered
ok, so how can I reset it from php?
It's controlled by JS, you'd need to inject a script in a render hook to alter the local storage
Package
filament/filament
Package Version
v3.2.25
Laravel Version
v10.45.1
Livewire Version
v3.0
PHP Version
PHP 8.2
Problem description
Navigation groups dont collapse
Added collapsed() to NavigationGroup and set sidebarFullyCollapsibleOnDesktop() in Panel - dont collapse group. View cache or browser local storage is clear.
Expected behavior
to be collapsed
Steps to reproduce
in app\Providers\Filament\AdminPanelProvider.php
in app\app\Filament\Resources\CategoryResource.php
Reproduction repository
https://github.com/VanDerRomio/filamentphp-group/tree/main
Relevant log output
No response