title: jQuery click on leaflet map is working the first time, but not the second
body: <p>EDIT : I have recreated the issue on this website, if you want to check : <a href="http://leafletdev1.id-interactive.info/" rel="nofollow noreferrer">http://leafletdev1.id-interactive.info/</a></p>
  <p>I am truely sorry, i saw a lot of posts that looks like my problem, but none of them are working as I think it is not exactly related on the same subject. I am pretty sure my issue is somehow linked to this : <a href="https://stackoverflow.com/questions/25892990/jquery-click-working-once-not-twic">jQuery Click Working Once, not Twice</a>, but... I am a real newbie in ajax, and I can't really understand everything of what is going on here...</p>
  <p>I have a wordpress website that is using the <strong>freemium version</strong> of the plugin <strong>Leaflet Maps Marker v3.12.4</strong>. Here, I am displaying a map, with <strong>popups</strong> that open when I <strong>click the marker linked to them</strong> :</p>
  <p><a href="https://i.stack.imgur.com/d3hMI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d3hMI.png" alt="enter image description here" /></a></p>
  <p>What I am trying to achieve, is that <strong>when I click on a &quot;Bouton d'action&quot; button</strong>, it click the marker in order to <strong>open the popup</strong>. And it is actually working, except that when I move on the map, zoom, dezoom, or do any actual action, <strong>the clicks won't work anymore</strong>, and no more popups will open.</p>
  <p><a href="https://i.stack.imgur.com/4GM7O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4GM7O.png" alt="enter image description here" /></a></p>
  <p>Here is my code :</p>
  <pre><code>$(document).ready(function () {
      $('.marker1').click(function () {
          let d = 250;
          setTimeout(function () {
              let markersDOM = $('.leaflet-marker-pane img');
              let marker = null;
              let markerTitle = null;
  
              for (var i = 0; i &lt; markersDOM.length; i++) {
                  markerTitle = markersDOM[i];
                  marker = markersDOM[i].getAttribute(&quot;title&quot;);
                  if (marker === &quot;marker1&quot;) {
                      $(markerTitle).click();
                  }
              }
          }, d);
      });
  });
  </code></pre>
  <p>Do you know what is happening here ? I am a little lost...</p>
  <p>Thanks a lot for reading this.</p>