Select to view content in your preferred language

new Search dijit bug?

3752
4
Jump to solution
04-22-2015 11:53 AM
JoshHevenor
Frequent Contributor

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?

Tags (2)
1 Solution

Accepted Solutions
KennethMcComas
Deactivated User

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;

     });

});

This should allow the mouse click event to work.

View solution in original post

4 Replies
JoshHevenor
Frequent Contributor

Quick example,  click on the bold and nothing happens. Click on the normal text and select-result fires.

search_dijit_bug_example.png

KennethMcComas
Deactivated User

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;

     });

});

This should allow the mouse click event to work.

JoshHevenor
Frequent Contributor

correct as a workoutaround...still a bug in the API from what I can tell.

KristianEkenes
Esri Regular Contributor

This is an issue we're aware of and have it in the plan to fix for the next release of the API.

0 Kudos