we used to have our pages as plain livewire, and we were using
sortablejs
sortablejs
, however the javascript in the view does not seem to work, I can't even seem to get a console log! Can anyone help?
Solution
This is because livewire loads after the dom, you should load in the JS function into the app.js for example and then run the function. I.e. see https://livewire.laravel.com/docs/javascript