<?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 Widget has a strange behaviour? 4.18 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-has-a-strange-behaviour-4-18/m-p/1072505#M73622</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;We are using Angular as a framework for our entire application. On a page we load "esri/Map", where we have added a "esri/widgets/Widget", this widget is a confirm popup with a property called "message".&lt;BR /&gt;When we click on something inside the map the popup appears with the correct message and we then click it away. But when we move away from the page and come back and click in the map again, we get a strange behaviour. The render get called twice, the first time with the correct message and the second time message is undefined. What could be the problem?&lt;/P&gt;&lt;P&gt;I have tryed to properly destroy the widget and the map by doing the following:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public &lt;/SPAN&gt;&lt;SPAN&gt;destroy &lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.confirmWidget.destroy&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;mapview&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;destroy&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/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SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Then the beviour changes, it wont appear the second time but it will the third time?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 11:53:51 GMT</pubDate>
    <dc:creator>MartijnHoogstraten</dc:creator>
    <dc:date>2021-06-25T11:53:51Z</dc:date>
    <item>
      <title>Widget has a strange behaviour? 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-has-a-strange-behaviour-4-18/m-p/1072505#M73622</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;We are using Angular as a framework for our entire application. On a page we load "esri/Map", where we have added a "esri/widgets/Widget", this widget is a confirm popup with a property called "message".&lt;BR /&gt;When we click on something inside the map the popup appears with the correct message and we then click it away. But when we move away from the page and come back and click in the map again, we get a strange behaviour. The render get called twice, the first time with the correct message and the second time message is undefined. What could be the problem?&lt;/P&gt;&lt;P&gt;I have tryed to properly destroy the widget and the map by doing the following:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public &lt;/SPAN&gt;&lt;SPAN&gt;destroy &lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.confirmWidget.destroy&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;mapview&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;destroy&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SP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BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Then the beviour changes, it wont appear the second time but it will the third time?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 11:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-has-a-strange-behaviour-4-18/m-p/1072505#M73622</guid>
      <dc:creator>MartijnHoogstraten</dc:creator>
      <dc:date>2021-06-25T11:53:51Z</dc:date>
    </item>
  </channel>
</rss>

