fix(frontend): add autocomplete=off tags to most inputs

This commit is contained in:
sam 2024-12-02 15:06:17 +01:00
parent de733a0682
commit f3bb2d5d01
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
9 changed files with 25 additions and 7 deletions

View file

@ -65,7 +65,7 @@
onclick={() => move(index, false)}
/>
<InputGroupText>{$t("editor.field-name")}</InputGroupText>
<input class="form-control" bind:value={name} />
<input class="form-control" bind:value={name} autocomplete="off" />
<IconButton
color="danger"
icon="trash3"
@ -88,6 +88,7 @@
class="form-control"
bind:value={newEntry}
placeholder={$t("editor.new-entry")}
autocomplete="off"
/>
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
</form>

View file

@ -40,7 +40,7 @@
tooltip={$t("editor.move-entry-down")}
onclick={() => moveValue(index, false)}
/>
<input type="text" class="form-control" bind:value={value.value} />
<input type="text" class="form-control" bind:value={value.value} autocomplete="off" />
<ButtonDropdown>
<span use:tippy={{ content: status.tooltip }}>
<DropdownToggle color="secondary" caret>

View file

@ -56,6 +56,7 @@
class="form-control"
bind:value={newFieldName}
placeholder={$t("editor.field-name")}
autocomplete="off"
/>
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-field")} />
</form>

View file

@ -50,7 +50,7 @@
tooltip={$t("editor.move-entry-down")}
onclick={() => moveValue(index, true)}
/>
<input type="text" class="form-control" bind:value={value.value} />
<input type="text" class="form-control" bind:value={value.value} autocomplete="off" />
<ButtonDropdown>
<span use:tippy={{ content: status.tooltip }}>
<DropdownToggle color="secondary" caret>
@ -88,6 +88,7 @@
type="text"
class="form-control"
bind:value={value.display_text}
autocomplete="off"
/>
<IconButton id="display-help" icon="question" tooltip="Help" color="secondary" />
<!-- TODO: remove children={false} once sveltestrap is updated

View file

@ -60,6 +60,6 @@
{/each}
<form class="input-group m-1" onsubmit={addEntry}>
<input type="text" class="form-control" bind:value={newEntry} />
<input type="text" class="form-control" bind:value={newEntry} autocomplete="off" />
<IconButton type="submit" color="success" icon="plus" tooltip={$t("editor.add-entry")} />
</form>