aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2023-10-19 12:04:20 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-20 00:35:51 +0200
commit2d6cd78c3299fe343637f08d780ecb2646b33172 (patch)
tree2a5f99b9c251d6511a72deaf07b2b0303a3e2e13 /apps/settings/src
parenta6c450b481e439e23be166c84c6fcda45a6a2ebb (diff)
downloadnextcloud-server-2d6cd78c3299fe343637f08d780ecb2646b33172.tar.gz
nextcloud-server-2d6cd78c3299fe343637f08d780ecb2646b33172.zip
fix: replace non-standard autocorrect with spellcheck attribute
`autocorrect` was actual for Safari long time ago when Safari didn't fully supported HTML 5 spellcheck. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps/settings/src')
-rw-r--r--apps/settings/src/components/PasswordSection.vue4
-rw-r--r--apps/settings/src/components/PersonalInfo/EmailSection/Email.vue2
-rw-r--r--apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue4
-rw-r--r--apps/settings/src/components/Users/NewUserModal.vue8
-rw-r--r--apps/settings/src/components/Users/UserRow.vue3
5 files changed, 9 insertions, 12 deletions
diff --git a/apps/settings/src/components/PasswordSection.vue b/apps/settings/src/components/PasswordSection.vue
index aa0c46ec131..931a0f007fe 100644
--- a/apps/settings/src/components/PasswordSection.vue
+++ b/apps/settings/src/components/PasswordSection.vue
@@ -25,7 +25,7 @@
:value.sync="oldPass"
autocomplete="current-password"
autocapitalize="none"
- autocorrect="off" />
+ spellcheck="false" />
<NcPasswordField id="new-pass"
:label="t('settings', 'New password')"
@@ -33,7 +33,7 @@
:maxlength="469"
autocomplete="new-password"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
:check-password-strength="true" />
<NcButton type="primary"
diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
index 65214707ca3..7b5d4c11028 100644
--- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
+++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
@@ -31,7 +31,7 @@
:value="email"
:aria-describedby="helperText ? `${inputId}-helper-text` : ''"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
@input="onEmailChange">
<div class="email__actions-container">
diff --git a/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue b/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
index 59cccc54714..8cf92fe32ed 100644
--- a/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
+++ b/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
@@ -35,7 +35,7 @@
rows="8"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
@input="onPropertyChange" />
<input v-else
:id="inputId"
@@ -45,7 +45,7 @@
:value="value"
:aria-describedby="helperText ? `${name}-helper-text` : ''"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
:autocomplete="autocomplete"
@input="onPropertyChange">
diff --git a/apps/settings/src/components/Users/NewUserModal.vue b/apps/settings/src/components/Users/NewUserModal.vue
index a93d3fc329b..ca80ae6d7ec 100644
--- a/apps/settings/src/components/Users/NewUserModal.vue
+++ b/apps/settings/src/components/Users/NewUserModal.vue
@@ -37,7 +37,7 @@
:label="usernameLabel"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
pattern="[a-zA-Z0-9 _\.@\-']+"
required />
<NcTextField class="modal__item"
@@ -46,7 +46,7 @@
:label="t('settings', 'Display name')"
autocapitalize="none"
autocomplete="off"
- autocorrect="off" />
+ spellcheck="false" />
<span v-if="!settings.newUserRequireEmail"
id="password-email-hint"
class="modal__hint">
@@ -62,7 +62,7 @@
:label="newUser.mailAddress === '' ? t('settings', 'Password (required)') : t('settings', 'Password')"
autocapitalize="none"
autocomplete="new-password"
- autocorrect="off"
+ spellcheck="false"
:required="newUser.mailAddress === ''" />
<NcTextField class="modal__item"
data-test="email"
@@ -72,7 +72,7 @@
:label="newUser.password === '' || settings.newUserRequireEmail ? t('settings', 'Email (required)') : t('settings', 'Email')"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
:required="newUser.password === '' || settings.newUserRequireEmail" />
<div class="modal__item">
<!-- hidden input trick for vanilla html5 form validation -->
diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue
index 2e25c3e384c..d62780d2b61 100644
--- a/apps/settings/src/components/Users/UserRow.vue
+++ b/apps/settings/src/components/Users/UserRow.vue
@@ -51,7 +51,6 @@
:value.sync="editedDisplayName"
autocapitalize="off"
autocomplete="off"
- autocorrect="off"
spellcheck="false"
@trailing-button-click="updateDisplayName" />
</template>
@@ -82,7 +81,6 @@
:value.sync="editedPassword"
autocapitalize="off"
autocomplete="new-password"
- autocorrect="off"
required
spellcheck="false"
type="password"
@@ -105,7 +103,6 @@
:value.sync="editedMail"
autocapitalize="off"
autocomplete="email"
- autocorrect="off"
spellcheck="false"
type="email"
@trailing-button-click="updateEmail" />