Skip to content

Commit

Permalink
Do not capitalize username on iOS #405
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Apr 4, 2019
1 parent e1e8806 commit a333cdf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/user/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

<form-field
name="username"
v-model="username"
required
type="text"
required
autocapitalize="off"
autocorrect="off"
:label="$gettext('Username')"
v-model="username"
icon="user" />

<form-field
Expand Down Expand Up @@ -50,6 +52,8 @@
name="username"
v-model="username"
type="text"
autocapitalize="off"
autocorrect="off"
:label="$gettext('Username')"
icon="user" />
<form-field
Expand Down
10 changes: 10 additions & 0 deletions src/views/user/utils/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
:placeholder="placeholder || label"
:required="required"
:disabled="disabled"
:autocorrect="autocorrect"
:autocapitalize="autocapitalize"
v-model="value_"
class="input"
:class="{'is-danger':hasError || errorMessage}">
Expand Down Expand Up @@ -70,6 +72,14 @@
disabled: {
type: Boolean,
default: false
},
autocorrect: {
type: String,
default: undefined
},
autocapitalize: {
type: String,
default: undefined
}
},
Expand Down

0 comments on commit a333cdf

Please sign in to comment.