mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 06:33:10 +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) {
|
||||
this.$('[name=email]').select();
|
||||
} else {
|
||||
super.onready();
|
||||
this.$('[name=username]').select();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user