FilamentF
Filament3y ago
Hugo

Default collapsed section does not work

Hi,

I'm trying to make a collapsed section the default in my blade file. I followed the documentation (https://filamentphp.com/docs/3.x/support/blade-components/section), the collapsible works fine by itself, however when I add the collapsed, the section is not collapsed and the collapsible doesn't work anymore. Even without the collapsible, the collapsed doesn't work.

Here's my code:
<x-filament-widgets::widget>

    <x-filament::section
        collapsible collapsed>
        <x-slot name="heading">
            Birth date anomalies &nbsp;
            <x-filament::badge
                style="display: inline-block">{{ $this->getTableQuery()->count() }}</x-filament::badge>
        </x-slot>

        {{ $this->table }}
    </x-filament::section>

</x-filament-widgets::widget>


Do you have any ideas?

Thanks for your help.
Was this page helpful?