www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 2c37a164adbc85038b73be98622f48d56bf72184
parent 4121779d42ce443ffa8994bce42505428f5a5f46
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue,  8 Oct 2024 16:11:44 -0700

Disable autocapitalize, etc. for usernames

It's obviously very annoying to have to fight your user agent to
enter in the correct information. Hopefully this does it for all
of them.

Diffstat:
Mfiles/lib/ui.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/files/lib/ui.js b/files/lib/ui.js @@ -126,6 +126,9 @@ export function usernameInput() { username.setAttribute("minlength", 3) username.setAttribute("maxlength", 32) username.setAttribute("pattern", "^[^@]*$") + username.setAttribute("autocapitalize", "none") + username.setAttribute("spellcheck", "false") + username.setAttribute("autocorrect", "off") username.addEventListener("change", function(ev) { let v = ev.target.validity if (v.tooShort || v.tooLong) {