Skip to content

Commit 0d5d6b1

Browse files
committed
refocus
1 parent 092f93c commit 0d5d6b1

File tree

1 file changed

+6
-2
lines changed
  • services/static-webserver/client/source/class/osparc/auth/ui

1 file changed

+6
-2
lines changed

services/static-webserver/client/source/class/osparc/auth/ui/LoginView.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ qx.Class.define("osparc.auth.ui.LoginView", {
7676
email.getContentElement().setAttribute("autocomplete", "username");
7777
osparc.utils.Utils.setIdToWidget(email, "loginUserEmailFld");
7878
this._form.add(email, " Email", qx.util.Validate.email(), "email");
79-
this.addListener("appear", () => {
79+
const focusEmail = () => {
8080
email.focus();
8181
email.activate();
82-
});
82+
};
83+
this.addListener("appear", () => {
84+
focusEmail();
85+
setTimeout(() => focusEmail(), 100); // refocus
86+
}, this);
8387

8488
const pass = new osparc.ui.form.PasswordField().set({
8589
required: true

0 commit comments

Comments
 (0)