From e9ee11eec0c2139baae5247012b11ad4c792cf64 Mon Sep 17 00:00:00 2001 From: alex-chevski Date: Mon, 18 Dec 2023 16:35:41 +0300 Subject: [PATCH] fix comment reset --- app/Livewire/Plan/Comment/Create.php | 2 +- resources/views/livewire/plan/comment/create.blade.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Plan/Comment/Create.php b/app/Livewire/Plan/Comment/Create.php index fc505c8..ee77936 100644 --- a/app/Livewire/Plan/Comment/Create.php +++ b/app/Livewire/Plan/Comment/Create.php @@ -38,7 +38,7 @@ class Create extends Component $comment->plan_id = $this->plan->id; $comment->user_id = $this->user->id; $comment->save(); - $this->reset(['body']); + $this->reset(); $this->toggle(); diff --git a/resources/views/livewire/plan/comment/create.blade.php b/resources/views/livewire/plan/comment/create.blade.php index 92a27a0..507b5b0 100644 --- a/resources/views/livewire/plan/comment/create.blade.php +++ b/resources/views/livewire/plan/comment/create.blade.php @@ -18,8 +18,9 @@ $isChecked]) wire:model="isChecked" wire:click="$set('grade',1)" type="radio" name="rate" id="rate-1" value="1" hidden> + - +