mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[MISC] Disable auto capitalization of username field on mobile (#1435)
This commit is contained in:
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
Block a user