Make sure you Observe that the scripts will likely be run only once upon the very first render on the element. If you must run a JavaScript perform later - emit the party within the part and hear it in JavaScript as explained below) https://laravel-livewire.com/docs/2.x/inline-scripts