1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 18:19:54 +00:00

Turn off browser's autocomplete for the category input

The datalist-based existing category suggestions still work.
This commit is contained in:
Timur Ismagilov 2023-05-14 13:48:45 +03:00
parent 2dbcb0dc27
commit b540b94477

View File

@ -22,7 +22,7 @@
{{if .GivenPermissionToModify}} {{if .GivenPermissionToModify}}
<li class="categories-card__entry categories-card__add-to-cat"> <li class="categories-card__entry categories-card__add-to-cat">
<form method="POST" action="/add-to-category" class="categories-card__add-form js-add-cat-form"> <form method="POST" action="/add-to-category" class="categories-card__add-form js-add-cat-form">
<input type="text" name="cat" id="_cat-name" class="js-add-cat-name" <input type="text" name="cat" id="_cat-name" class="js-add-cat-name" autocomplete="off"
placeholder="{{block `placeholder` .}}Category name...{{end}}"> placeholder="{{block `placeholder` .}}Category name...{{end}}">
<datalist class="js-add-cat-list" id="cat-name-options"></datalist> <datalist class="js-add-cat-list" id="cat-name-options"></datalist>
<input type="hidden" name="hypha" value="{{$hyphaName}}"> <input type="hidden" name="hypha" value="{{$hyphaName}}">