Hi,
I have the following setup, in which I am using a check box to toggle the div and it is working fine but when I change the checkbox to radios the toggle behavior stops working any idea why?
<!-- working -->
<div x-data="{ show : @entangle('test') }">
<label>
<input type="checkbox" value="1" />
Check me
</label>
<div x-show="show">I'll be show after checking</div>
</div>
<!-- not working-->
<div x-data="{ show : @entangle('test') }">
<label>
<input type="radio" value="1" name="test" wire:model="test" />
show
</label>
<label>
<input type="radio" value="0" name="test" wire:model="test" />
hide
</label>
<div x-show="show">I'll be show after checking</div>
</div>
Component.php
public $test = 1;