<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trouble With Click Events to Display Popup 4.33 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658127#M87726</link>
    <description>&lt;P&gt;I am trying to manually open a popup when clicking on the map view, but the click events do not seem to be working quite as I am expecting.&amp;nbsp; It seems almost like my popup is getting closed before I can even see it.&lt;/P&gt;&lt;P&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let viewElement = document.getElementById("map-component");
await viewElement.viewOnReady();
let view = viewElement.view;

view.on("click", (event)=&amp;gt;{

 view.openPopup({
        location: event.mapPoint,
        title: "You clicked here",
        content: "This is a point of interest"
    });
});&lt;/LI-CODE&gt;&lt;P&gt;With immediate-click I do briefly see the popup and then it closes automatically.&amp;nbsp; Using the hold and double-click events, the popup does display and stays visible.&amp;nbsp; How do I get the popup to stay visible using a simple click event?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 17:06:22 GMT</pubDate>
    <dc:creator>JasonBartling1</dc:creator>
    <dc:date>2025-10-15T17:06:22Z</dc:date>
    <item>
      <title>Trouble With Click Events to Display Popup 4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658127#M87726</link>
      <description>&lt;P&gt;I am trying to manually open a popup when clicking on the map view, but the click events do not seem to be working quite as I am expecting.&amp;nbsp; It seems almost like my popup is getting closed before I can even see it.&lt;/P&gt;&lt;P&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let viewElement = document.getElementById("map-component");
await viewElement.viewOnReady();
let view = viewElement.view;

view.on("click", (event)=&amp;gt;{

 view.openPopup({
        location: event.mapPoint,
        title: "You clicked here",
        content: "This is a point of interest"
    });
});&lt;/LI-CODE&gt;&lt;P&gt;With immediate-click I do briefly see the popup and then it closes automatically.&amp;nbsp; Using the hold and double-click events, the popup does display and stays visible.&amp;nbsp; How do I get the popup to stay visible using a simple click event?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 17:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658127#M87726</guid>
      <dc:creator>JasonBartling1</dc:creator>
      <dc:date>2025-10-15T17:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble With Click Events to Display Popup 4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658167#M87727</link>
      <description>&lt;P&gt;If you want to control the popup on click, you'll need to disable the popup first. If you don't do this, on click, the default popup behavior will win and can sometimes conflict with you trying to open it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/ByjmyBb?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/ByjmyBb?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;arcgis-map item-id="45725ba7d9fb47a0925398919b13d1fa" popup-disabled&amp;gt;
  &amp;lt;/arcgis-map&amp;gt;
  &amp;lt;script type="module"&amp;gt;
    // Update code here
    const mapElement = document.querySelector("arcgis-map");
    mapElement.addEventListener("arcgisViewClick", (event) =&amp;gt; {
      const {
        mapPoint
      } = event.detail;
      mapElement.openPopup({
        location: mapPoint,
        title: "You clicked here",
        content: "This is a point of interest"
      });
    });
  &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:20:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658167#M87727</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-10-15T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble With Click Events to Display Popup 4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658169#M87728</link>
      <description>&lt;P&gt;Thanks! That did the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-click-events-to-display-popup-4-33/m-p/1658169#M87728</guid>
      <dc:creator>JasonBartling1</dc:creator>
      <dc:date>2025-10-15T18:25:28Z</dc:date>
    </item>
  </channel>
</rss>

