fix tabindex on login page

This commit is contained in:
Rigel Kent 2020-12-09 13:01:00 +01:00
parent b49f22d8f9
commit 23cd3129a9
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
3 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@
<my-input-toggle-hidden formControlName="password" id="password"
i18n-placeholder placeholder="Password"
[ngClass]="{ 'input-error': formErrors['password'] }"
autocomplete="current-password" tabindex="2"></my-input-toggle-hidden>
autocomplete="current-password" [tabindex]="2"></my-input-toggle-hidden>
<div *ngIf="formErrors.password" class="form-error">
{{ formErrors.password }}
</div>

View File

@ -1,5 +1,5 @@
<div class="input-group input-group-sm">
<input [id]="id" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [(ngModel)]="value" (ngModelChange)="update()" [ngClass]="{ 'readonly': readonly }" [readonly]="readonly"
<input [id]="id" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [tabindex]="tabindex" [(ngModel)]="value" (ngModelChange)="update()" [ngClass]="{ 'readonly': readonly }" [readonly]="readonly"
#input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control" />
<div *ngIf="withToggle || withCopy" class="input-group-append">

View File

@ -19,6 +19,7 @@ export class InputToggleHiddenComponent implements ControlValueAccessor {
@Input() value = ''
@Input() autocomplete = 'off'
@Input() placeholder = ''
@Input() tabindex = 0
@Input() withToggle = true
@Input() withCopy = false
@Input() readonly = false