Skip to content

Commit

Permalink
fix: button loading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Sep 1, 2023
1 parent 6616296 commit 76510b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/forms/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
@if ($attributes->get('type') === 'submit')
<span wire:target="submit" wire:loading.delay class="loading loading-xs text-warning loading-spinner"></span>
@else
@if ($attributes->has('wire:click'))
<span wire:target="{{ $attributes->get('wire:click') }}" wire:loading.delay
@if ($attributes->whereStartsWith('wire:click')->first())
<span wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" wire:loading.delay
class="loading loading-xs loading-spinner"></span>
@endif
@endif
Expand Down

0 comments on commit 76510b8

Please sign in to comment.