From 90a35a8b762d04972bbb386fdeefd88e5dfdc942 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Wed, 13 Mar 2013 12:06:41 -0400 Subject: [PATCH] avoid flashing geocoder results list when closing fixes #993 --- js/id/ui/geocoder.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/id/ui/geocoder.js b/js/id/ui/geocoder.js index f3238334a..f11b026e4 100644 --- a/js/id/ui/geocoder.js +++ b/js/id/ui/geocoder.js @@ -78,7 +78,9 @@ iD.ui.Geocoder = function(context) { if (show !== shown) { button.classed('active', show); gcForm.call(iD.ui.Toggle(show)); - if (!show) resultsList.call(iD.ui.Toggle(show)); + if (!show && !resultsList.classed('hide')) { + resultsList.call(iD.ui.Toggle(show)); + } if (show) inputNode.node().focus(); else inputNode.node().blur(); shown = show;