Select to view content in your preferred language

4.29: Search with custom sources broken

426
3
Jump to solution
02-29-2024 12:22 AM
NicolasGIS
Frequent Contributor

Hello,

Upgrading to 4.29, I noticed that search with custom sources is broken:

https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/

After selecting a result from suggestion, it does not zoom to it and the following error is logged: 

 

message: "Cannot select without a source."

 

Returning the `sourceIndex` property in the `searchResult` fixes it but is not documented:

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult

Thanks,

Nicolas

0 Kudos
1 Solution

Accepted Solutions
NicolasGIS
Frequent Contributor

Hi @Noah-Sager,

Thanks for your reply.

Seems like sample is now fixed and using latest 4.29.4, it's now working out of the box.

Thanks

View solution in original post

3 Replies
Noah-Sager
Esri Regular Contributor

Hi @NicolasGIS, thanks for reporting this issue. We are investigating.

0 Kudos
NicolasGIS
Frequent Contributor

Hi @Noah-Sager,

Thanks for your reply.

Seems like sample is now fixed and using latest 4.29.4, it's now working out of the box.

Thanks

Noah-Sager
Esri Regular Contributor

Excellent, thanks for reporting. I forgot to circle back and post that we found and fixed the issue.

0 Kudos