Fix autocomp behaviour to ignore non-Kannada inputs and always select the first suggestion.

This commit is contained in:
2025-11-30 20:58:27 +05:30
parent acb421a26b
commit 5cfb2d8e6d
3 changed files with 8 additions and 4 deletions

View File

@@ -58,7 +58,7 @@
</select>
<div class="input-group">
<input autofocus autocomplete="off" required placeholder="" aria-label="Search word"
type="text" id="q" name="q" value="{{ if .Data.Query }}{{ .Data.Query.Query }}{{ end }}" data-autocomp-autoselect="true" />
type="text" id="q" name="q" value="{{ if .Data.Query }}{{ .Data.Query.Query }}{{ end }}" data-autocomp-autoselect="false" />
<button type="submit" aria-label="Search"><img src="/static/search.svg?v={{ .AssetVer }}" alt="{{- .L.T "global.btnSearch" -}}" /></button>
</div>
</div>