Have a look at this sample for the new Search dijit from the 3.13 JavaScript api
ArcGIS API for JavaScript | Basic Search
When you get a list of suggestions you can't click on the <strong>bold/strong</strong> text. I assume this is a bug on ESRI's part. Has anyone dealt with this?
A work around for this ESRI bug would be to remove the <strong> tag from the HTML.
geocoder.on('suggest-results', function(evt){ array.forEach(dojoQuery('.suggestionsMenu li'), function(domSuggestion){ domSuggestion.innerHTML = domSuggestion.title; });});
geocoder.on('suggest-results', function(evt){
array.forEach(dojoQuery('.suggestionsMenu li'), function(domSuggestion){
domSuggestion.innerHTML = domSuggestion.title;
});
This should allow the mouse click event to work.
This is an issue we're aware of and have it in the plan to fix for the next release of the API.
correct as a workoutaround...still a bug in the API from what I can tell.
Quick example, click on the bold and nothing happens. Click on the normal text and select-result fires.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.