Persist account names on transaction editor on refresh

This commit is contained in:
RunasSudo 2024-11-09 16:31:45 +11:00
parent 86c5371d32
commit e5cce0fd4b
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 7 additions and 3 deletions

View File

@ -57,6 +57,10 @@ function initCombobox(elCombobox) {
updateComboboxInputs(elCombobox, elInput); updateComboboxInputs(elCombobox, elInput);
}); });
}); });
// Disable autocomplete
// Set this in Javascript rather than in HTML so that browser will continue to persist values after refresh
elInput.autocomplete = 'off';
} }
// Init comboboxes // Init comboboxes

View File

@ -33,7 +33,7 @@
</select> </select>
</div> </div>
<div class="relative combobox w-full"> <div class="relative combobox w-full">
<input type="text" class="bordered-field pl-16 peer" name="account" autocomplete="off"> <input type="text" class="bordered-field pl-16 peer" name="account">
{% include 'components/accounts_combobox_inner.html' %} {% include 'components/accounts_combobox_inner.html' %}
</div> </div>
</div> </div>
@ -69,7 +69,7 @@
</select> </select>
</div> </div>
<div class="relative combobox w-full"> <div class="relative combobox w-full">
<input type="text" class="bordered-field pl-16 peer" name="account" autocomplete="off"> <input type="text" class="bordered-field pl-16 peer" name="account">
{% include 'components/accounts_combobox_inner.html' %} {% include 'components/accounts_combobox_inner.html' %}
</div> </div>
</div> </div>
@ -133,7 +133,7 @@
</select> </select>
</div> </div>
<div class="relative combobox w-full"> <div class="relative combobox w-full">
<input type="text" class="bordered-field pl-16 peer" name="account" value="{{ posting.account }}" autocomplete="off"> <input type="text" class="bordered-field pl-16 peer" name="account" value="{{ posting.account }}">
{% include 'components/accounts_combobox_inner.html' %} {% include 'components/accounts_combobox_inner.html' %}
</div> </div>
</div> </div>