]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
fix tabindex on login page
authorRigel Kent <sendmemail@rigelk.eu>
Wed, 9 Dec 2020 12:01:00 +0000 (13:01 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Wed, 9 Dec 2020 12:01:00 +0000 (13:01 +0100)
client/src/app/+login/login.component.html
client/src/app/shared/shared-forms/input-toggle-hidden.component.html
client/src/app/shared/shared-forms/input-toggle-hidden.component.ts

index a2362d9784cffcfc78b2ecc5a262b4d2f81e52cb..e0be3b415261bf5ea8871d01c7847dfa40947678 100644 (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>
index f59dc6215cdc7a4d92b3333d8144215fd239fe93..af7c6650fb75715462c2d2138def8cff7e2fb02b 100644 (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">
index 0e974426bd082bdd40d7ccdbac3119ff979f0b4b..56e5b9762e3c70513e37f106c7ecc66c10bc8a96 100644 (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