mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 21:38:58 +08:00
Focus on username field when login buttons are present
This commit is contained in:
parent
23062c6d0a
commit
fd5f53dc09
@ -164,7 +164,7 @@ export default class SignUpModal extends Modal {
|
|||||||
if (this.props.username && !this.props.token) {
|
if (this.props.username && !this.props.token) {
|
||||||
this.$('[name=email]').select();
|
this.$('[name=email]').select();
|
||||||
} else {
|
} else {
|
||||||
super.onready();
|
this.$('[name=username]').select();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user