fix: add autofocus to auth fields (#6483)
This commit is contained in:
@@ -70,7 +70,7 @@ export default class ApiKeyAuth extends React.Component {
|
||||
<label>Value:</label>
|
||||
{
|
||||
value ? <code> ****** </code>
|
||||
: <Col><Input type="text" onChange={ this.onChange }/></Col>
|
||||
: <Col><Input type="text" onChange={ this.onChange } autoFocus/></Col>
|
||||
}
|
||||
</Row>
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ export default class BasicAuth extends React.Component {
|
||||
<label>Username:</label>
|
||||
{
|
||||
username ? <code> { username } </code>
|
||||
: <Col><Input type="text" required="required" name="username" onChange={ this.onChange }/></Col>
|
||||
: <Col><Input type="text" required="required" name="username" onChange={ this.onChange } autoFocus/></Col>
|
||||
}
|
||||
</Row>
|
||||
<Row>
|
||||
|
||||
@@ -148,7 +148,7 @@ export default class Oauth2 extends React.Component {
|
||||
{
|
||||
isAuthorized ? <code> { this.state.username } </code>
|
||||
: <Col tablet={10} desktop={10}>
|
||||
<input id="oauth_username" type="text" data-name="username" onChange={ this.onInputChange }/>
|
||||
<input id="oauth_username" type="text" data-name="username" onChange={ this.onInputChange } autoFocus/>
|
||||
</Col>
|
||||
}
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user