From 46c3fcc12a93a2fc379dcb5e9734e3047c4d9055 Mon Sep 17 00:00:00 2001 From: alex-chevski Date: Tue, 19 Dec 2023 23:39:56 +0300 Subject: [PATCH] reset body grade create comment fix --- app/Livewire/Plan/Comment/Create.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Plan/Comment/Create.php b/app/Livewire/Plan/Comment/Create.php index 3ea82ca..ea395ec 100644 --- a/app/Livewire/Plan/Comment/Create.php +++ b/app/Livewire/Plan/Comment/Create.php @@ -21,7 +21,8 @@ class Create extends Component return view('livewire.plan.comment.create'); } - public function toggle() { + public function toggle() + { $this->isChecked = !$this->isChecked; } @@ -39,7 +40,8 @@ class Create extends Component $comment->plan_id = $this->plan->id; $comment->user_id = $this->user->id; $comment->save(); - $this->reset(); + + $this->reset(['grade', 'body']); $this->toggle();