From bbbf6ebe376c7b6c3a64e14571a3a477b880e3ad Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Mon, 8 Jul 2024 09:38:27 +0200
Subject: [frontend] Better autocapitalize/spellcheck settings on forms (#3077)
---
web/source/settings/views/user/migration.tsx | 5 +++++
web/source/settings/views/user/profile.tsx | 11 ++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
(limited to 'web/source/settings/views/user')
diff --git a/web/source/settings/views/user/migration.tsx b/web/source/settings/views/user/migration.tsx
index 69aae6059..5c964d457 100644
--- a/web/source/settings/views/user/migration.tsx
+++ b/web/source/settings/views/user/migration.tsx
@@ -135,6 +135,8 @@ function AlsoKnownAsURI({ index, data }) {
label={`Alias #${index+1}`}
field={form.alsoKnownAsURI}
placeholder={`https://example.org/users/my_other_account_${index+1}`}
+ type="url"
+ pattern="(http|https):\/\/.+"
/>
);
}
@@ -190,10 +192,13 @@ function MoveForm({ data: profile }) {
field={form.movedToURI}
label="Move target URI"
placeholder="https://example.org/users/my_new_account"
+ type="url"
+ pattern="(http|https):\/\/.+"
/>
Profile fields
@@ -233,6 +236,8 @@ function UserProfileForm({ data: profile }) {
className="monospace"
rows={8}
disabled={!instanceConfig.allowCustomCSS}
+ autoCapitalize="none"
+ spellCheck="false"
/>
);
--
cgit v1.2.3