authentication: refocus username input when toggling mode
This commit is contained in:
parent
3433740d80
commit
e193065734
@ -112,6 +112,8 @@ export default class extends AbstractNonAuthenticatedView
|
|||||||
|
|
||||||
this.titleKey = this.current_mode === 'register' ? 'registerWindowTitle' : 'loginWindowTitle';
|
this.titleKey = this.current_mode === 'register' ? 'registerWindowTitle' : 'loginWindowTitle';
|
||||||
this.setTitle();
|
this.setTitle();
|
||||||
|
|
||||||
|
document.getElementById('username-input').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user