diff --git a/src/Http/Livewire/LfCheckboxFilter.php b/src/Http/Livewire/LfCheckboxFilter.php index 9db4884..51e7b9d 100644 --- a/src/Http/Livewire/LfCheckboxFilter.php +++ b/src/Http/Livewire/LfCheckboxFilter.php @@ -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(); } }