Why doesn't my filter badge update when I apply a filter?

I've made a table with a filter. When I apply the filter (which seems to work fine) I would expect the badge on the filter icon to change from 0 to 1 but it doesn't.

Here's my code:

public function table(Table $table): Table
{
return $table
->query($this->getTableQuery())
->deferLoading()
->columns($this->getTableColumns())
->filters($this->getTableFilters());
}

protected function getTableColumns(): array
{
return [
TextColumn::make('accountid')
->label('Account ID')
];
}

protected function getTableFilters(): array
{
return [
Filter::make('accountid_filter')
->form([
TextInput::make('accountid')->label('Account ID'),
])
->query(function (Builder $query, array $data): Builder {
return $query->when(
$data['accountid'],
fn (Builder $query, $value): Builder => $query->where('accountid', 'ILIKE', "%{$value}%")
);
}),
];
}
Was this page helpful?