From e19306573420be40a43d426443033577f67dbf4a Mon Sep 17 00:00:00 2001 From: AdrienLSH Date: Thu, 15 Feb 2024 19:42:47 +0100 Subject: [PATCH] authentication: refocus username input when toggling mode --- frontend/static/js/views/accounts/AuthenticationView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/static/js/views/accounts/AuthenticationView.js b/frontend/static/js/views/accounts/AuthenticationView.js index 5e457b4..ed3d233 100644 --- a/frontend/static/js/views/accounts/AuthenticationView.js +++ b/frontend/static/js/views/accounts/AuthenticationView.js @@ -112,6 +112,8 @@ export default class extends AbstractNonAuthenticatedView this.titleKey = this.current_mode === 'register' ? 'registerWindowTitle' : 'loginWindowTitle'; this.setTitle(); + + document.getElementById('username-input').focus(); } /**