authentication: refocus username input when toggling mode

This commit is contained in:
AdrienLSH 2024-02-15 19:42:47 +01:00
parent 0a28bb5271
commit 0397e191e0

View File

@ -112,6 +112,8 @@ export default class extends AbstractNonAuthenticatedView
this.titleKey = this.current_mode === 'register' ? 'registerWindowTitle' : 'loginWindowTitle';
this.setTitle();
document.getElementById('username-input').focus();
}
/**