<?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 Re: Search Widget setting popupEnabled to false still opening popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304185#M81576</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217"&gt;@LaurenBoyd&lt;/a&gt;&amp;nbsp;for pointing me in the right direction.&amp;nbsp; I think this should work.&amp;nbsp; I added the following to the search-complete event for the Search widget:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;reactiveUtils.whenOnce(() =&amp;gt; search?.view?.popup.visible).then(() =&amp;gt; search?.view?.popup.close());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This will disable the popups for the Search widget, while keeping them on for the map view.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 20:38:26 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2023-06-28T20:38:26Z</dc:date>
    <item>
      <title>Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304151#M81571</link>
      <description>&lt;P&gt;I am using the Search widget and do not want to popup to appear after a value is selected.&amp;nbsp; Setting the enablePopup property to false has no impact.&amp;nbsp; Neither does setting enablePopup to false on the search source itself.&amp;nbsp; This seems to be a bug starting at 4.27.&amp;nbsp; Confirmed through the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/" target="_blank" rel="noopener"&gt;Search widget with multiple sources&lt;/A&gt;&amp;nbsp; sample by setting enabledPopup to false and switching from 4.27 to 4.26.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 19:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304151#M81571</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-06-28T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304163#M81572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;The new&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#popupEnabled" target="_self"&gt;view.popupEnabled&lt;/A&gt; property (at 4.27) only disables the click event from opening the popup, but the popup is still created for the Search widget to be used.&lt;/P&gt;&lt;P&gt;With the &lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/#improved-load-time-from-deferred-popup-loading" target="_self"&gt;view.popup changes at 4.27,&lt;/A&gt;&amp;nbsp;you need to set &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#popup" target="_self"&gt;view.popup&lt;/A&gt; = null so that the Search widget won't display the Search results in a popup. See the example here:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/dyQvewZ?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/dyQvewZ?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304163#M81572</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-06-28T20:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304179#M81573</link>
      <description>&lt;P&gt;Thanks for the quick response.&amp;nbsp; I did figure it had something to do with the popup changes at 4.27.&amp;nbsp; Setting the view's popup to null does work in this case, but it would disable popups across the whole app, instead of just for the search widget.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304179#M81573</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-06-28T20:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304183#M81575</link>
      <description>&lt;P&gt;The Search widget also has a popupEnabled property you can set.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupEnabled" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupEnabled&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304183#M81575</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-06-28T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304185#M81576</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217"&gt;@LaurenBoyd&lt;/a&gt;&amp;nbsp;for pointing me in the right direction.&amp;nbsp; I think this should work.&amp;nbsp; I added the following to the search-complete event for the Search widget:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;reactiveUtils.whenOnce(() =&amp;gt; search?.view?.popup.visible).then(() =&amp;gt; search?.view?.popup.close());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This will disable the popups for the Search widget, while keeping them on for the map view.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304185#M81576</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-06-28T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget setting popupEnabled to false still opening popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304192#M81577</link>
      <description>&lt;P&gt;So that property should still work on the Search widget?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-setting-popupenabled-to-false-still/m-p/1304192#M81577</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-06-28T20:49:40Z</dc:date>
    </item>
  </channel>
</rss>

