© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
20 replies
SLINZEN

wire:click result in an exception

Hi, I have a problem with a custom livewire component.

My button:
<button wire:click="nextReportStep" class="bttn-2">Weiter</button>
<button wire:click="nextReportStep" class="bttn-2">Weiter</button>

And this function in my class:
public function nextReportStep(): void
{
    $this->reportStep++;
}
public function nextReportStep(): void
{
    $this->reportStep++;
}


Result in this:
Alpine Expression Error: undefined
Expression: "$wire.nextReportStep"

Uncaught String {'Could not find Livewire component in DOM tree', el: button.bttn-2, expression: '$wire.nextReportStep'}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

wire:click in navigation in v2?
FilamentFFilament / ❓┊help
3y ago
Prevent wire:click in parent element
FilamentFFilament / ❓┊help
2y ago
Wire click broken in render hook
FilamentFFilament / ❓┊help
3y ago
V4 wire:click and wire:change not fire in ->extraAttributes
FilamentFFilament / ❓┊help
4mo ago