Skip to content

Commit 5774a2c

Browse files
committed
no autofocus if disabled
1 parent 94208c1 commit 5774a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/shared/search/input.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<!-- Value - value of the search field (for search results page) -->
22
<!-- Disabled (optional) - if search field has to be disabled -->
33
<!-- Placeholder (optional) - placeholder text to be used -->
4-
<input type="search" spellcheck="false" name="q" maxlength="255" placeholder="{{if .Placeholder}}{{.Placeholder}}{{else}}{{ctx.Locale.Tr "search.search"}}…{{end}}"{{if .Value}} value="{{.Value}}"{{end}}{{if .Disabled}} disabled{{end}} autofocus>
4+
<input type="search" spellcheck="false" name="q" maxlength="255" placeholder="{{if .Placeholder}}{{.Placeholder}}{{else}}{{ctx.Locale.Tr "search.search"}}…{{end}}"{{if .Value}} value="{{.Value}}"{{end}}{{if .Disabled}} disabled{{else}} autofocus{{end}}>

0 commit comments

Comments
 (0)