Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: button loading animation

Andras Bacsai76510b897138
diff --git a/resources/views/components/forms/button.blade.php b/resources/views/components/forms/button.blade.php
index f619e3ba10..f3bec86e92 100644
--- a/resources/views/components/forms/button.blade.php
+++ b/resources/views/components/forms/button.blade.php
@@ -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