Make sure you Take note that your scripts is going to be operate just once upon the 1st render of the ingredient. If you have to run a JavaScript functionality afterwards - emit the celebration with the element and listen to it in JavaScript as explained in this article) https://laravel-livewire.com/docs/2.x/inline-scripts