mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-21 02:18:52 +00:00
Fix the search box
Fix #277 : autoselect search field Fix #1107: no spell checking/auto-correct on search field
This commit is contained in:
9
src/invidious/views/components/search_box.ecr
Normal file
9
src/invidious/views/components/search_box.ecr
Normal file
@@ -0,0 +1,9 @@
|
||||
<form class="pure-form" action="/search" method="get">
|
||||
<fieldset>
|
||||
<input type="search" id="searchbox" autocomplete="off" autocorrect="off"
|
||||
autocapitalize="none" spellcheck="false" autofocus name="q"
|
||||
placeholder="<%= translate(locale, "search") %>"
|
||||
title="<%= translate(locale, "search") %>"
|
||||
value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
||||
</fieldset>
|
||||
</form>
|
||||
Reference in New Issue
Block a user