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();