From 42c806d1f9f970f230455365cb1f09a3d2655734 Mon Sep 17 00:00:00 2001 From: anhofmann Date: Thu, 17 Dec 2020 21:16:23 +0100 Subject: [PATCH] "name" attribute when livewire is used When using livewire and @wire in the form, this blade template will remove the "name" attribute from the radio button. This leads to the situation where the user could activate more than one radio button at the same time. Please correct me, if I'm on the wrong track here. --- resources/views/bootstrap-4/form-radio.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/views/bootstrap-4/form-radio.blade.php b/resources/views/bootstrap-4/form-radio.blade.php index 0c0ab22..8769bf7 100644 --- a/resources/views/bootstrap-4/form-radio.blade.php +++ b/resources/views/bootstrap-4/form-radio.blade.php @@ -4,9 +4,8 @@ @if($isWired()) wire:model{!! $wireModifier() !!}="{{ $name }}" - @else - name="{{ $name }}" @endif + name="{{ $name }}" value="{{ $value }}" @@ -26,4 +25,4 @@ @if($hasErrorAndShow($name)) @endif - \ No newline at end of file +