Geocoder dijit throws error on submit when autocomplete is true - bug?

690
2
09-15-2014 06:51 AM
JuliaCarney
New Contributor II

Hi,

When autocomplete is enabled for the geocoder widget, if a user choses to press enter instead of selecting from the autocomplete drop-down, it throws the following error:   Error "Error: This deferred has already been resolved     at Error (native)     at d (http://js.arcgis.com/3.10/init.js:73:478)     at resolve.callback (http://js.arcgis.com/3.10/init.js:75:350)     at q._receivedResults (http://js.arcgis.com/3.10/js/esri/dijit/Geocoder.js:31:116)     at null.<anonymous> (http://js.arcgis.com/3.10/js/esri/dijit/Geocoder.js:28:18)     at http://js.arcgis.com/3.10/init.js:174:23     at c (http://js.arcgis.com/3.10/init.js:74:221)     at d (http://js.arcgis.com/3.10/init.js:74:10)     at resolve.callback (http://js.arcgis.com/3.10/init.js:75:350)     at null.<anonymous> (http://js.arcgis.com/3.10/init.js:754:70)"   This is the case even in your sample at this url: Geocoder Widget | ArcGIS API for JavaScript . Is there a workaround or patch for this? Is there a way to disable whatever event (submit or keyup?) is triggering it? 

Thanks, Jules

Tags (2)
0 Kudos
2 Replies
TimWitt2
MVP Alum

Hey Jules,

I just tested it and you are right. Even though it throws this error, it still takes me to the right place. Thats at least something

You should send an email here js_feedback@esri.com

They should be able to answer you.

Tim

0 Kudos
JuliaCarney
New Contributor II

Thanks, Tim. The issue I seem to have with it (at least in my code), is that subsequent searches using the autocomplete fail, so the user would have to refresh at that point to keep using the geocoder. I will email them.

Best,

Jules

0 Kudos