Skip to content

Commit

Permalink
Set maxlength for search input to 64 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Nov 11, 2023
1 parent 8a32c5b commit 660a00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>{{- (printf "%s&nbsp;" .Title ) | htmlUnescape -}}

<div id="searchbox">
<input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s " .Title) }}"
aria-label="search" type="search" autocomplete="off">
aria-label="search" type="search" autocomplete="off" maxlength="64">
<ul id="searchResults" aria-label="search results"></ul>
</div>

Expand Down

0 comments on commit 660a00e

Please sign in to comment.