See https://livewire.laravel.com/docs/wire-model#multiple-checkboxes
I have never had that happen in HTML.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm building a filter system using livewire, whenever multiple checkboxes are checked, it would randomly uncheck it self.

Am using the following code:
public array $category = [];
public function getCategoriesProperty()
{
return Category::where('is_active', true)
->withCount('products')->orderBy('order')->get();
}
@foreach ($this->categories as $row)
<div class="mb-2">
<input type="checkbox" data-name="categories" wire:model="category" value="{{ $row->id }}" name="selected_categories" id="category-{{ $row->id }}">
<label for="category-{{ $row->id }}" class="text-xs font-bold font-area-extended uppercase text-black">{{ $row->name }}</label>
</div>
@endforeach
I have managed to stop the issue by adding wire:loading.attr="disabled" to the checkbox input. The only problem is it prevent users from being able to quickly click on multiple checkboxes.
It effectively disables the checkboxes until the data has loaded. Is there anyway around fixing the issue without using wire:loading.attr="disabled" ?
Please or to participate in this conversation.