reset body grade create comment fix

This commit is contained in:
2023-12-19 23:39:56 +03:00
parent 3c379684e5
commit 46c3fcc12a

View File

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