I don't know whether it is right for your answer but try to add you script inside @script
and @endscript
. This ensured my scripts are worked even after Livewire navigation.
Reference -> https://laracasts.com/discuss/channels/livewire/script-not-executing-in-livewire-component-view