Added focus to the email and master password fields (#3934)
This commit is contained in:
parent
b637c2f172
commit
05fe75d96f
|
@ -25,6 +25,7 @@
|
||||||
bitInput
|
bitInput
|
||||||
type="email"
|
type="email"
|
||||||
formControlName="email"
|
formControlName="email"
|
||||||
|
appAutofocus
|
||||||
(keyup.enter)="validateEmail()"
|
(keyup.enter)="validateEmail()"
|
||||||
/>
|
/>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
@ -79,6 +80,7 @@
|
||||||
bitInput
|
bitInput
|
||||||
type="{{ showPassword ? 'text' : 'password' }}"
|
type="{{ showPassword ? 'text' : 'password' }}"
|
||||||
formControlName="masterPassword"
|
formControlName="masterPassword"
|
||||||
|
appAutofocus
|
||||||
/>
|
/>
|
||||||
<button type="button" bitSuffix bitButton (click)="togglePassword()">
|
<button type="button" bitSuffix bitButton (click)="togglePassword()">
|
||||||
<i
|
<i
|
||||||
|
|
|
@ -275,9 +275,4 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
|
||||||
this.showLoginWithDevice = false;
|
this.showLoginWithDevice = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected focusInput() {
|
|
||||||
const email = this.loggedEmail;
|
|
||||||
document.getElementById(email == null || email === "" ? "email" : "masterPassword").focus();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue