4.29: Search with custom sources broken

223
3
Jump to solution
02-29-2024 12:22 AM
NicolasGIS
Occasional Contributor III

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
Occasional Contributor III

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
Occasional Contributor III

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