Ahmad
Ahmad
FFilament
Created by Ahmad on 9/5/2024 in #❓┊help
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();
});
// Run on initial load
document.addEventListener('livewire:load', function () {
initializeWidget();
});

// Run after each Livewire update
document.addEventListener('livewire:update', function () {
initializeWidget();
});
3 replies