<?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 map-components-react stopPropagation() funtion does not work when used react in components in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529527#M85535</link>
    <description>&lt;P&gt;Hello I am trying to rectify the component but some view items are not having the expected effect.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;ArcgisMap&lt;BR /&gt;&lt;/SPAN&gt;    itemId&lt;SPAN&gt;="e691172598f04ea8881cd2a4adaa45ba"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    onArcgisViewDrag&lt;SPAN&gt;=&lt;/SPAN&gt;{ (event:ViewDragEvent) =&amp;gt;&lt;BR /&gt;        {&lt;BR /&gt;            &lt;SPAN&gt;// prevents panning with the mouse drag event&lt;BR /&gt;&lt;/SPAN&gt;            event.&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;();&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;   &lt;BR /&gt;    onArcgisViewKeyDown&lt;SPAN&gt;=&lt;/SPAN&gt;{(event: ViewKeyDownEvent) =&amp;gt; {&lt;BR /&gt;        &lt;SPAN&gt;// prevents panning with the arrow keys&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;keyPressed &lt;/SPAN&gt;= event.&lt;SPAN&gt;key&lt;/SPAN&gt;;&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;keyPressed&lt;/SPAN&gt;?.&lt;SPAN&gt;length&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;0 &lt;/SPAN&gt;&amp;amp;&amp;amp; &lt;SPAN&gt;keyPressed&lt;/SPAN&gt;.&lt;SPAN&gt;slice&lt;/SPAN&gt;(&lt;SPAN&gt;0&lt;/SPAN&gt;, &lt;SPAN&gt;5&lt;/SPAN&gt;) === &lt;SPAN&gt;"Arrow"&lt;/SPAN&gt;) {&lt;BR /&gt;            event.&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;();&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;    }}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/&lt;SPAN&gt;ArcgisMap&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;both the `onArcgisViewDrag` event &amp;amp; the `onArcgisViewKeyDown` trigger but the&amp;nbsp;`&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;()` does not prevent movement&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 16:07:47 GMT</pubDate>
    <dc:creator>RandallDodson</dc:creator>
    <dc:date>2024-08-29T16:07:47Z</dc:date>
    <item>
      <title>map-components-react stopPropagation() funtion does not work when used react in components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529527#M85535</link>
      <description>&lt;P&gt;Hello I am trying to rectify the component but some view items are not having the expected effect.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;ArcgisMap&lt;BR /&gt;&lt;/SPAN&gt;    itemId&lt;SPAN&gt;="e691172598f04ea8881cd2a4adaa45ba"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    onArcgisViewDrag&lt;SPAN&gt;=&lt;/SPAN&gt;{ (event:ViewDragEvent) =&amp;gt;&lt;BR /&gt;        {&lt;BR /&gt;            &lt;SPAN&gt;// prevents panning with the mouse drag event&lt;BR /&gt;&lt;/SPAN&gt;            event.&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;();&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;   &lt;BR /&gt;    onArcgisViewKeyDown&lt;SPAN&gt;=&lt;/SPAN&gt;{(event: ViewKeyDownEvent) =&amp;gt; {&lt;BR /&gt;        &lt;SPAN&gt;// prevents panning with the arrow keys&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;keyPressed &lt;/SPAN&gt;= event.&lt;SPAN&gt;key&lt;/SPAN&gt;;&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;keyPressed&lt;/SPAN&gt;?.&lt;SPAN&gt;length&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;0 &lt;/SPAN&gt;&amp;amp;&amp;amp; &lt;SPAN&gt;keyPressed&lt;/SPAN&gt;.&lt;SPAN&gt;slice&lt;/SPAN&gt;(&lt;SPAN&gt;0&lt;/SPAN&gt;, &lt;SPAN&gt;5&lt;/SPAN&gt;) === &lt;SPAN&gt;"Arrow"&lt;/SPAN&gt;) {&lt;BR /&gt;            event.&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;();&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;    }}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/&lt;SPAN&gt;ArcgisMap&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;both the `onArcgisViewDrag` event &amp;amp; the `onArcgisViewKeyDown` trigger but the&amp;nbsp;`&lt;SPAN&gt;stopPropagation&lt;/SPAN&gt;()` does not prevent movement&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529527#M85535</guid>
      <dc:creator>RandallDodson</dc:creator>
      <dc:date>2024-08-29T16:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: map-components-react stopPropagation() funtion does not work when used react in components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529528#M85536</link>
      <description>&lt;P&gt;Versions used in package.json&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;"@arcgis/core"&lt;/SPAN&gt;: &lt;SPAN&gt;"^4.30.9"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;"@arcgis/map-components-react"&lt;/SPAN&gt;: &lt;SPAN&gt;"^4.30.7"&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529528#M85536</guid>
      <dc:creator>RandallDodson</dc:creator>
      <dc:date>2024-08-29T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: map-components-react stopPropagation() funtion does not work when used react in components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529535#M85537</link>
      <description>&lt;P&gt;The components emit CustomEvents that wrap the native view mouse events, like &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/?path=/docs/component-reference-map--docs" target="_blank" rel="noopener"&gt;CustomEvent&amp;lt;ViewDragEvent&amp;gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Try to `event.detail.stopPropagation()`.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-components-react-stoppropagation-funtion-does/m-p/1529535#M85537</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-08-29T16:17:39Z</dc:date>
    </item>
  </channel>
</rss>

