Improve accessibility of form fields in AddEditUserDialog
See https://mui.com/material-ui/api/text-field/
This commit is contained in:
parent
f17710659b
commit
db9183d2cf
|
|
@ -56,6 +56,8 @@ export default class AddEditDialog extends Component<IProps, IState> {
|
||||||
label="Name *"
|
label="Name *"
|
||||||
type="email"
|
type="email"
|
||||||
value={name}
|
value={name}
|
||||||
|
name="username"
|
||||||
|
id="username"
|
||||||
onChange={this.handleChange.bind(this, 'name')}
|
onChange={this.handleChange.bind(this, 'name')}
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
|
|
@ -66,6 +68,8 @@ export default class AddEditDialog extends Component<IProps, IState> {
|
||||||
value={pass}
|
value={pass}
|
||||||
fullWidth
|
fullWidth
|
||||||
label={isEdit ? 'Pass (empty if no change)' : 'Pass *'}
|
label={isEdit ? 'Pass (empty if no change)' : 'Pass *'}
|
||||||
|
name="password"
|
||||||
|
id="password"
|
||||||
onChange={this.handleChange.bind(this, 'pass')}
|
onChange={this.handleChange.bind(this, 'pass')}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue