© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
David | Fortune Validator

Table -> Modal -> Filament Table

Hi all

I've an interesting issue.

I have a filament table with a custom action (opens a modal) on a row:
 Tables\Actions\Action::make('Pallet Labels')
      ->modalContent(fn (DocketPrices $record): View => view('livewire.dockets.pallet-labels.list-pallet-labels-wrapper', ['docket_price' => $record]))
 Tables\Actions\Action::make('Pallet Labels')
      ->modalContent(fn (DocketPrices $record): View => view('livewire.dockets.pallet-labels.list-pallet-labels-wrapper', ['docket_price' => $record]))


I have used ->modalContent to direct to a blade file which calls the livewire component
<livewire:dockets.pallet-labels.list-pallet-labels :docket-price="$docket_price" />
<livewire:dockets.pallet-labels.list-pallet-labels :docket-price="$docket_price" />

On the pallet lables modal, I have another livewire component which is utilising a Filament Table to display associated Pallet Labels. This is working to this point ( I assume this is the best method thus far? )

The issue I have:
When I click 'Create Pallet Label' or the Edit button it SHOULD open a SECOND modal, however I get a js error
TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
. If I click the button again it will then load modal and work as intended.

I wondered if 1) I am doing this the correct way or 2) ideas on fixing the error so it doesnt require two clicks

Thanks everyone.
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

Filament table in Modal - livewire component
FilamentFFilament / ❓┊help
2y ago
Filament Table + Livewire UI Custom Modal
FilamentFFilament / ❓┊help
3y ago
Filament Modal
FilamentFFilament / ❓┊help
2y ago
Filament Modal
FilamentFFilament / ❓┊help
3y ago