[MISC] Disable auto capitalization of username field on mobile (#1435)

pull/1436/head
Amir Zarrinkafsh 2020-11-09 14:04:44 +11:00 committed by GitHub
parent a5f07d7ade
commit e243fad1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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>
); );

View File

@ -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) {