From 4b8ecc2dd75aca2976c68ff5a766ef8d849b723f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 3 Jun 2013 16:56:30 -0700 Subject: [PATCH] Fix focus when undoing with autofocused preset search (fixes #1570) --- js/id/modes/browse.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/id/modes/browse.js b/js/id/modes/browse.js index f7ac75717..af530a9a0 100644 --- a/js/id/modes/browse.js +++ b/js/id/modes/browse.js @@ -19,6 +19,8 @@ iD.modes.Browse = function(context) { context.install(behavior); }); + // Get focus on the body. + document.activeElement.blur(); context.ui().sidebar.select(null); };