You should Be aware that the scripts might be run just once upon the 1st render in the ingredient. If you must run a JavaScript operate afterwards - emit the function from the element and pay attention to it in JavaScript as described below) https://laravel-livewire.com/docs/2.x/inline-scripts