title: Select2 cancel/preventDefault select2:select at specific condition (v.4.0.x)
body: <p>I need to add a Button to every select2 item and prevent the default event so only the button gets triggered.</p>
  
  <p>I have the following code but the normal <code>onSelect</code> event still gets triggered:</p>
  
  <pre><code>select.on('select2:select', test2);
  
  function test2(e) {
      if (e.params.originalEvent.target.classList.contains('TreeButton')) {
          //stop event execution
          e.stopPropagation();
          e.preventDefault();
          return false;
      } else {
          //execute normal
      }
  }
  </code></pre>