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: loading after button text

Andras Bacsai48ad40dea221
diff --git a/resources/views/components/forms/button.blade.php b/resources/views/components/forms/button.blade.php
index 318d126ea5..da81d81b1e 100644
--- a/resources/views/components/forms/button.blade.php
+++ b/resources/views/components/forms/button.blade.php
@@ -8,11 +8,11 @@
@endisset
@if ($isModal) onclick="{{ $modalId }}.showModal()" @endif>
+ {{ $slot }}
@if ($attributes->get('type') === 'submit')
<span wire:target="submit" wire:loading.delay class="loading loading-xs text-warning loading-spinner"></span>
@else
<span wire:target="{{ explode('(', $attributes->whereStartsWith('wire:click')->first())[0] }}" wire:loading.delay
class="loading loading-xs loading-spinner"></span>
@endif
- {{ $slot }}
</button>