FilamentF
Filament17mo ago
2 replies
Ahmad

Custom widget JavaScript not working within View

Hi guys, I'm creating custom widget, and loading JavaScript within view. But It's not working!

I tried livewire eventLister as well:

// Run on initial load
    document.addEventListener('livewire:load', function () {
        initializeWidget();
    });

    // Run after each Livewire update
    document.addEventListener('livewire:update', function () {
        initializeWidget();
    });
Was this page helpful?