Skip to content

Commit

Permalink
fix disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Mar 17, 2024
1 parent 014d6d8 commit 25e24cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/simple/component.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
value="0"
id="star-0"
class="!hidden peer"
@disabled($isDisabled)
@disabled($isDisabled())
{{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}"
>

<label
for="star-0"
@class([
"text-slate-300 peer-checked:text-danger-500",
"group-hover:!text-slate-300 peer-hover:!text-danger-500 cursor-pointer" => ! $isDisabled,
"group-hover:!text-slate-300 peer-hover:!text-danger-500 cursor-pointer" => ! $isDisabled(),
])
>
<x-icon name="heroicon-c-no-symbol" class="w-6 h-6 pointer-events-none" />
Expand All @@ -26,7 +26,7 @@ class="!hidden peer"
for="star-{{ $value }}"
@class([
"text-primary-500 peer-checked:text-slate-300",
"group-hover:!text-primary-500 peer-hover:!text-slate-300 cursor-pointer" => ! $isDisabled,
"group-hover:!text-primary-500 peer-hover:!text-slate-300 cursor-pointer" => ! $isDisabled(),
])
>
<x-icon name="heroicon-s-star" class="w-6 h-6 pointer-events-none" />
Expand All @@ -38,7 +38,7 @@ class="!hidden peer"
id="star-{{ $value }}"
class="!hidden peer"
wire:loading.attr="disabled"
@disabled($isDisabled)
@disabled($isDisabled())
{{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}"
>
@endforeach
Expand Down

0 comments on commit 25e24cd

Please sign in to comment.