Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SingleLineSearch] Result graphic issue #27

Closed
mekstrom opened this issue Jan 31, 2013 · 2 comments
Closed

[SingleLineSearch] Result graphic issue #27

mekstrom opened this issue Jan 31, 2013 · 2 comments
Milestone

Comments

@mekstrom
Copy link

Using the SingleLineSearch, the result graphic sometimes shows up and sometimes it don't. When using keyboard arrows and pressing enter for one search result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list, the info window shows and the map zoom in to the result but no graphic appear.

I did some debugging and it seems like when using the mouse and clicking one search result, at first the code runs as expected but then the resultList_changeHandler function is triggered again causing the showSearchResultOnMap function to run again with no searchResult object. So the result graphic is removed and no new graphic is added since the searchResult is null this second time the function is triggered.

There's a thread in the forum about this here:
http://forums.arcgis.com/threads/74045-configuring-searchbox-in-HeaderControllerWidget-3.1
But since there was some other questions there I started a new thread about this here:
http://forums.arcgis.com/threads/75682-Searchbox-result-graphic-bug

/Mattias

@bsvensson
Copy link
Member

Hi, Mattias
This has actually already been fixed.

Duplicate of #13 (RTE caused by clicking on search results.).

@mekstrom
Copy link
Author

mekstrom commented Feb 1, 2013

Thanks! Sorry I missed that, I'll check the closed issues more carefully next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants