forked from eatvio/eatvio-infra
fix comment reset
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
<input @class(['star-rating__input', 'hidden' => $isChecked]) wire:model="isChecked" wire:click="$set('grade',1)" type="radio"
|
||||
name="rate" id="rate-1" value="1" hidden>
|
||||
<label class="star-rating__label" for="rate-1"></label>
|
||||
<input wire:model="isChecked" wire:click="$set('grade',0)" type="radio" name="rate" id="rate-0" value="1" hidden>
|
||||
</div>
|
||||
<button wire:click="save" type="button" class="btn btn-primary">Оставь отзыв</button>
|
||||
<button wire:click.prevent="save" type="button" class="btn btn-primary">Оставь отзыв</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user