]> git.openstreetmap.org Git - rails.git/commitdiff
Remove search input autofocus workaround for old browsers
authorAnton Khorev <tony29@yandex.ru>
Sun, 6 Apr 2025 11:13:35 +0000 (14:13 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 6 Apr 2025 11:13:35 +0000 (14:13 +0300)
app/assets/javascripts/index.js

index be2a015b344d27a5faaf8db44d0359741d26b788..7ff8a40d1474905b9d706968e75c35b90b22149f 100644 (file)
@@ -278,9 +278,6 @@ $(function () {
       if (params.has("query")) {
         $("#sidebar .search_form input[name=query]").value(params.get("query"));
       }
       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();
     };
 
       return map.getState();
     };