1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-05-30 10:04:04 +00:00

Trick safari to not recognise any "name" in the input field (#254)

Safari looks at id and placeholder in order to enable contacts autocomplete.

Fixes: #253
This commit is contained in:
Danila Gorelko 2024-08-14 14:10:03 +03:00 committed by GitHub
parent 00bd7e1f78
commit ea7d60dd72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@
{{if .GivenPermissionToModify}}
<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">
<input type="text" name="cat" id="_cat-name" class="js-add-cat-name" autocomplete="off"
placeholder="{{block `placeholder` .}}Category name...{{end}}">
<input type="text" name="cat" id="_cat-input" class="js-add-cat-name" autocomplete="off"
placeholder="{{block `placeholder` .}}Category n&zwnj;ame...{{end}}">
<datalist class="js-add-cat-list" id="cat-name-options"></datalist>
<input type="hidden" name="hypha" value="{{$hyphaName}}">
<input type="hidden" name="redirect-to" value="/hypha/{{$hyphaName}}">

View File

@ -271,7 +271,7 @@ mark { background: rgba(130, 80, 30, 5); color: inherit; }
border: none;
background: none;
}
.categories-card #_cat-name {
.categories-card #_cat-input {
width: 100%;
margin: 0;
padding: 0 .5rem;