F
Filament9mo ago
lodeki

open-modal not dispatching on dashboard.

I have this code inside a normal blade file
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
<x-slot name="trigger">
<x-filament::button>
Verify
</x-filament::button>
</x-slot>
<x-slot name="description">
Thank you for choosing Kodibooks. Please provide information about you and your organization.
</x-slot>
<livewire:biodata /> //THIS COMPONENT HAS THE FILAMENT WIZARD
<x-slot name="footer">
Kodibooks
</x-slot>
</x-filament::modal>
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
<x-slot name="trigger">
<x-filament::button>
Verify
</x-filament::button>
</x-slot>
<x-slot name="description">
Thank you for choosing Kodibooks. Please provide information about you and your organization.
</x-slot>
<livewire:biodata /> //THIS COMPONENT HAS THE FILAMENT WIZARD
<x-slot name="footer">
Kodibooks
</x-slot>
</x-filament::modal>
. I 'm trying to open the modal the moment the user logs in into the dashboard using this
->dispatchOnNext('open-modal', id: 'biodata')
->dispatchOnNext('open-modal', id: 'biodata')
. But the slider modal does not show up . This is my code
document.addEventListener('livewire:initialized', async function () {
Livewire.dispatch(name,params);
//other code ...
}
document.addEventListener('livewire:initialized', async function () {
Livewire.dispatch(name,params);
//other code ...
}
.Any idea .
1 Reply
lodeki
lodeki9mo ago
help on this.