title: On element click Trigger event fire twice for input checkbox
body: <p>when i click on the div element should trigger click on checkbox only once but for some reason i get event fired twice , i saw other topics with similar problem but noone helped me</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('div').click(function(e) {
    $('input').trigger('click');
  
    check();
  });
  
  function check() {
    if ($('input').is(':checked')) {
      console.log('input cheked')
    } else {
      console.log('unchecked')
    }
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.test {
    height: 150px;
    width: 150px;
    background: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="test"&gt;
    &lt;input type="checkbox" name=""&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>