From 2ca5c459619ef765d013565f2ce6965c857e7a79 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 30 Dec 2025 21:17:37 +0600 Subject: remove autofocus from search field it makes the site very inconvenient to use on mobile devices since every page reload a keyboard slides up --- bin/serve.fnl | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/serve.fnl b/bin/serve.fnl index 32aa1f2..8f76028 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -419,9 +419,6 @@ (menu-template path "menu-mobile") [:form {:class "form"} [:input {:type :search :name "query" :value form.query - ;; autofocus makes browser scroll up to the input on reloads - ;; and that doesn't work well with _G.reload - :autofocus (if luna.debug nil true) :placeholder "Поисковый запрос"}] [:div {:class "form-range"} [:input {:type :number :name "min-price" :min "1" -- cgit v1.2.3