all repos — cameraman @ 06f88241479fce982da0c92b260b8459fd6a7dbf

disable autocomplete on text inputs
BiRabittoh andronacomarco@gmail.com
Mon, 03 Jun 2024 16:09:17 +0200
commit

06f88241479fce982da0c92b260b8459fd6a7dbf

parent

fa6b49105426b79e9dfc57e5185bde30f5f92960

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M templates/index.htmltemplates/index.html

@@ -248,8 +248,8 @@ const myDescription = description || '';

const myDay = day || '01'; const myMonth = month || '01'; return ` - <td data-field="name" data-value="${myName}"><input class="big-input" type="text" value="${myName}" id="name-${id}" onkeydown="handleInputKeyDown(event, ${id})"></td> - <td data-field="description" data-value="${myDescription}"><input class="big-input" type="text" value="${myDescription}" id="description-${id}" onkeydown="handleInputKeyDown(event, ${id})"></td> + <td data-field="name" data-value="${myName}"><input class="big-input" type="text" value="${myName}" id="name-${id}" onkeydown="handleInputKeyDown(event, ${id})" autocomplete="off"></td> + <td data-field="description" data-value="${myDescription}"><input class="big-input" type="text" value="${myDescription}" id="description-${id}" onkeydown="handleInputKeyDown(event, ${id})" autocomplete="off"></td> <td data-field="date" data-value="${myDay}/${myMonth}" class="date-inputs"> <input type="number" value="${myDay}" id="day-${id}" class="small-input" min="1" max="31" onchange="this.value = padMax(this.value, this.max);" onclick="this.select()" onkeydown="handleInputKeyDown(event, ${id})"> / <input type="number" value="${myMonth}" id="month-${id}" class="small-input" min="1" max="12" onchange="this.value = padMax(this.value, this.max);" onclick="this.select()" onkeydown="handleInputKeyDown(event, ${id})">