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