title: Laravel-livewire multiple select2
body: <p>I've started using Laravel-Livewire and added a Select2 select box library to one of the components.</p>
  <p>The problem is, that component has multiple tabs and when i load the component on the tab with the Select2 input everything works fine:</p>
  <p><a href="https://i.stack.imgur.com/iMIp9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iMIp9.png" alt="enter image description here" /></a></p>
  <p>But if i load the component on other tab, or even change the tab and get back to this tab, the Select2 is not loaded correctly and gets back to a regular multiple select:</p>
  <p><a href="https://i.stack.imgur.com/IUZSm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IUZSm.png" alt="enter image description here" /></a></p>
  <p>Im loading the CSS and JS files on layout so they are loaded every time i get this component..</p>
  <p>I even added this script to the components</p>
  <pre><code>&lt;script&gt;
     $('.select2').select2();
  &lt;/script&gt;
  </code></pre>
  <p>in order to force this input to be a select2 but even this script wont work.</p>