authentication: refocus username input when toggling mode

This commit is contained in:
AdrienLSH 2024-02-15 19:42:47 +01:00
parent 3433740d80
commit e193065734

View File

@ -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();
} }
/** /**