fix(ui): suppress capitalization and correction for login on mobile keyboards (#3783)
* suppress capitalization and correction for login on mobile keyboards * prettier pass --------- Co-authored-by: Deluan Quintão <deluan@navidrome.org>
This commit is contained in:
parent
1709ce37f6
commit
318ad164df
1 changed files with 6 additions and 1 deletions
|
|
@ -101,8 +101,13 @@ const renderInput = ({
|
||||||
}) => (
|
}) => (
|
||||||
<TextField
|
<TextField
|
||||||
error={!!(touched && error)}
|
error={!!(touched && error)}
|
||||||
|
inputProps={{
|
||||||
|
// mobile keyboards: suppress capitalization and correction for login related fields
|
||||||
|
autocapitalize: 'none',
|
||||||
|
autocorrect: 'off',
|
||||||
|
...inputProps,
|
||||||
|
}}
|
||||||
helperText={touched && error}
|
helperText={touched && error}
|
||||||
{...inputProps}
|
|
||||||
{...props}
|
{...props}
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue