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