Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhanley committed Dec 12, 2024
1 parent 325a618 commit fbedee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/resources/views/flux/button/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// We need to add `wire:target` here because without it the loading indicator won't be scoped
// by method params, causing multiple buttons with the same method but different params to
// trigger each other's loading indicators...
if (! $attributes->has('wire:target') && $target = $attributes->whereStartsWith('wire:click')) {
if (! $attributes->has('wire:target') && $target = $attributes->whereStartsWith('wire:click')->first()) {
$attributes = $attributes->merge(['wire:target' => $target], escape: false);
}
}
Expand Down

0 comments on commit fbedee2

Please sign in to comment.