mirror of
https://github.com/flarum/core.git
synced 2025-07-11 03:46:23 +02:00
Focus on username field when login buttons are present
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user