Skip to content

Commit

Permalink
Fix an issue when the filter was cleared using its Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Nov 7, 2024
1 parent c64c40e commit 14924aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Livewire/LfCheckboxFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function clearOption($tag)
{
if ($tag['field'] === $this->field) {
if (in_array($tag['value'], $this->selected)) {
$this->selected = array_diff($this->selected, [$tag['value']]);
$this->selected = array_values(array_diff($this->selected, [$tag['value']]));
$this->updatedSelected();
}
}
Expand Down

0 comments on commit 14924aa

Please sign in to comment.