livewire / flux

The official Livewire UI component library
428 stars 38 forks source link

Checkbox and switch state loss #455

Closed ju5t closed 2 hours ago

ju5t commented 2 hours ago

Livewire does not get any state information from the checkbox and switch component. The updates list/array stays empty in an XHR request.

This error appeared since v1.0.11. v1.0.10 does not have this issue.

<?php

use function Livewire\Volt\{state};

state(['checked' => false]);

?>

<div>
    <flux:checkbox wire:model.live="checked" />
    <div>@json($checked)</div>
</div>
danielrona commented 2 hours ago

@ju5t updating to livewire 3.5.12 will fix this, see: https://github.com/livewire/flux/pull/456 or https://github.com/livewire/flux/issues/336#issuecomment-2414875926

ju5t commented 2 hours ago

@danielrona thanks!