© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2w ago•
6 replies
Bonux

FiltersLayout::BeforeContent on mobile moves filter placement on click and resets it back on scroll.

✅ SolvedTable builder5️⃣v5
See video below

Table code:

    public function table(Table $table): Table
    {
        return $table
            ->query(Product::query()->with('category'))
            ->columns([
                Stack::make([
                    View::make('products.table.product-card'),
                ]),
            ])
            ->contentGrid([
                'md' => 2,
                'lg' => 3,
            ])
            ->filters([
                SelectFilter::make('categories')
                    ->relationship('category', 'name')
                    ->multiple()
                    ->preload()
                    ->searchable(),
            ], layout: FiltersLayout::BeforeContent)
            ->hiddenFilterIndicators()
            ->paginated([10])
            ->deferFilters(false);
    }
    public function table(Table $table): Table
    {
        return $table
            ->query(Product::query()->with('category'))
            ->columns([
                Stack::make([
                    View::make('products.table.product-card'),
                ]),
            ])
            ->contentGrid([
                'md' => 2,
                'lg' => 3,
            ])
            ->filters([
                SelectFilter::make('categories')
                    ->relationship('category', 'name')
                    ->multiple()
                    ->preload()
                    ->searchable(),
            ], layout: FiltersLayout::BeforeContent)
            ->hiddenFilterIndicators()
            ->paginated([10])
            ->deferFilters(false);
    }
Solution
I think its a bug, opened issue on github - https://github.com/filamentphp/filament/issues/19080
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filter button placement?
FilamentFFilament / ❓┊help
2y ago
FiltersLayout
FilamentFFilament / ❓┊help
10mo ago
Used filterslayout and section
FilamentFFilament / ❓┊help
3y ago
Toggle filter inline layout when using FiltersLayout::AboveContent
FilamentFFilament / ❓┊help
2y ago