F
Filament2y ago
Sesh

Active filter badges are repeating themselves

My active filter badges are acting very weird in the table builder of v3 (see screenshots). What could be the reason? This is my code:
public function table(Table $table): Table
{
return $table
->query(News::query())
->columns([
TextColumn::make('date')
->label(__('Date'))
->date()
->sortable(),
TextColumn::make('name_' . App::getLocale())
->label(__('Name'))
->searchable()
->sortable(),
])
->paginated([12, 24, 48, 96, 'all'])
->filters([
SelectFilter::make('players')
->label(__('Players'))
->relationship('players', 'name_en')
->multiple(),
])
->filtersFormMaxHeight('600px');
}
public function table(Table $table): Table
{
return $table
->query(News::query())
->columns([
TextColumn::make('date')
->label(__('Date'))
->date()
->sortable(),
TextColumn::make('name_' . App::getLocale())
->label(__('Name'))
->searchable()
->sortable(),
])
->paginated([12, 24, 48, 96, 'all'])
->filters([
SelectFilter::make('players')
->label(__('Players'))
->relationship('players', 'name_en')
->multiple(),
])
->filtersFormMaxHeight('600px');
}
Solution:
This was a bug in Filament which has been corrected in the newest version (3.0.6). Thanks @Dan Harrin for the bugfix.
Jump to solution
1 Reply
Solution
Sesh
Sesh2y ago
This was a bug in Filament which has been corrected in the newest version (3.0.6). Thanks @Dan Harrin for the bugfix.

Did you find this page helpful?