[MISC] Disable auto capitalization of username field on mobile (#1435)
parent
a5f07d7ade
commit
e243fad1ba
|
@ -16,7 +16,8 @@ const FixedTextField = function (props: TextFieldProps) {
|
||||||
classes: {
|
classes: {
|
||||||
root: style.label
|
root: style.label
|
||||||
}
|
}
|
||||||
}}>
|
}}
|
||||||
|
inputProps={{autoCapitalize: props.autoCapitalize}}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</TextField>
|
</TextField>
|
||||||
);
|
);
|
||||||
|
|
|
@ -94,6 +94,7 @@ const FirstFactorForm = function (props: Props) {
|
||||||
fullWidth
|
fullWidth
|
||||||
onChange={v => setUsername(v.target.value)}
|
onChange={v => setUsername(v.target.value)}
|
||||||
onFocus={() => setUsernameError(false)}
|
onFocus={() => setUsernameError(false)}
|
||||||
|
autoCapitalize="none"
|
||||||
onKeyPress={(ev) => {
|
onKeyPress={(ev) => {
|
||||||
if (ev.key === 'Enter') {
|
if (ev.key === 'Enter') {
|
||||||
if (!username.length) {
|
if (!username.length) {
|
||||||
|
|
Loading…
Reference in New Issue