Skip to content

Commit

Permalink
FIX: rating value not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
kalirocket committed Nov 30, 2023
1 parent dc7750e commit 02af0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/rating.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$size_adjustment = ($size == 'big') ? 2 : 1;
$clickable = filter_var($clickable, FILTER_VALIDATE_BOOLEAN);
@endphp
@if($clickable)<x-bladewind::input type="hidden" css="rating-value-{{$name}}" selected_value="{{$rating}}" />@endif
@if($clickable)<x-bladewind::input type="hidden" class="rating-value-{{$name}}" selected_value="{{$rating}}" />@endif
<div class="h-{{$sizing[$size]+$size_adjustment}} overflow-hidden inline-block">
@for ($x = 1; $x < 6; $x++)
<div data-rating="{{$x}}" class="inline bw-rating-{{$x}} {{$name}}@if($rating!= 0 && $x <= $rating*1) rated @endif"
Expand Down

0 comments on commit 02af0e8

Please sign in to comment.