From: Anton Khorev Date: Sun, 6 Apr 2025 11:13:35 +0000 (+0300) Subject: Remove search input autofocus workaround for old browsers X-Git-Tag: live~71^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9d49cc198bf475e9b677b57c012c6ef3a568262b?hp=-c Remove search input autofocus workaround for old browsers --- 9d49cc198bf475e9b677b57c012c6ef3a568262b diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index be2a015b3..7ff8a40d1 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -278,9 +278,6 @@ $(function () { if (params.has("query")) { $("#sidebar .search_form input[name=query]").value(params.get("query")); } - if (!("autofocus" in document.createElement("input"))) { - $("#sidebar .search_form input[name=query]").focus(); - } return map.getState(); };