<?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: 4.32 Custom Search Sources Always Gets First Suggestion in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588744#M86570</link>
    <description>&lt;P&gt;Just tested in my app and that fixed it!&amp;nbsp; Thanks for the quick response.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 21:40:11 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2025-02-24T21:40:11Z</dc:date>
    <item>
      <title>4.32 Custom Search Sources Always Gets First Suggestion</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588644#M86566</link>
      <description>&lt;P&gt;I am working on upgrading an app from 4.30 to 4.32 which has custom search sources, similar to this sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-search-customsource" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-search-customsource&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, it is always returning the first suggestion in the getResults method.&amp;nbsp; After trying the sample, I see the same behavior there as well.&amp;nbsp; It works correctly in the sample if I revert back to 4.31.&lt;/P&gt;&lt;P&gt;If I type "8 boul" in the search widget, and then select 8 La Boule 79240 Vernoux-en-Gatine, it selects and zooms to 8 Boule 22940 Plaintel, which is the first in the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Justin_Greco_0-1740419449458.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126129i7705A20A77438AC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Justin_Greco_0-1740419449458.png" alt="Justin_Greco_0-1740419449458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Justin_Greco_1-1740419486007.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126130i3B66F62D393D28FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Justin_Greco_1-1740419486007.png" alt="Justin_Greco_1-1740419486007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Justin_Greco_2-1740419634038.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126132iD3AEF94EDFBC719D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Justin_Greco_2-1740419634038.png" alt="Justin_Greco_2-1740419634038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 17:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588644#M86566</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2025-02-24T17:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: 4.32 Custom Search Sources Always Gets First Suggestion</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588678#M86567</link>
      <description>&lt;P&gt;Thanks for reporting, and for testing so quickly&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt;. I see the behavior in the sample. We are investigating.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 19:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588678#M86567</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-02-24T19:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: 4.32 Custom Search Sources Always Gets First Suggestion</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588707#M86568</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;we may have found the issue. The "k&lt;SPAN&gt;ey" should be a unique identifier for the suggestion. Currently, the sample needs to be updated to reflect this (coming soon). If you modify line 79 of the sample to be be a unique identifier, it seems to work as expected for me. Can you test in your app?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Test-app&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/noash/pen/dPypPKG?editors=1010" target="_blank" rel="noopener"&gt;https://codepen.io/noash/pen/dPypPKG?editors=1010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Images of before and after of code from sample attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 19:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588707#M86568</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-02-24T19:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: 4.32 Custom Search Sources Always Gets First Suggestion</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588744#M86570</link>
      <description>&lt;P&gt;Just tested in my app and that fixed it!&amp;nbsp; Thanks for the quick response.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 21:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-32-custom-search-sources-always-gets-first/m-p/1588744#M86570</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2025-02-24T21:40:11Z</dc:date>
    </item>
  </channel>
</rss>

