LP1852782 Fix Firefox contenteditable tabbing
authorBill Erickson <berickxx@gmail.com>
Wed, 15 Jan 2020 15:10:03 +0000 (10:10 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 21 Feb 2020 16:44:38 +0000 (11:44 -0500)
Use tabindex="0" instead of tabindex="" to indicate focusable content.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.html

index cba8925..0fb728b 100644 (file)
@@ -16,7 +16,7 @@ Track their labels here.
     spellcheck="false"
     class="d-inline-block text-dark text-break {{moreClasses}}"
     [ngClass]="{'auth-invalid': isAuthInvalid()}"
     spellcheck="false"
     class="d-inline-block text-dark text-break {{moreClasses}}"
     [ngClass]="{'auth-invalid': isAuthInvalid()}"
-    [attr.tabindex]="fieldText ? -1 : ''"
+    [attr.tabindex]="fieldText ? -1 : '0'"
     [attr.aria-label]="ariaLabel"
     [egContextMenu]="contextMenuEntries()"
     (menuItemSelected)="contextMenuChange($event.value)"
     [attr.aria-label]="ariaLabel"
     [egContextMenu]="contextMenuEntries()"
     (menuItemSelected)="contextMenuChange($event.value)"
@@ -36,7 +36,7 @@ Track their labels here.
     [size]="inputSize()"
     [maxlength]="maxLength || ''"
     [disabled]="fieldText"
     [size]="inputSize()"
     [maxlength]="maxLength || ''"
     [disabled]="fieldText"
-    [attr.tabindex]="fieldText ? -1 : ''"
+    [attr.tabindex]="fieldText ? -1 : '0'"
     [attr.aria-label]="ariaLabel"
     [egContextMenu]="contextMenuEntries()"
     (menuItemSelected)="contextMenuChange($event.value)"
     [attr.aria-label]="ariaLabel"
     [egContextMenu]="contextMenuEntries()"
     (menuItemSelected)="contextMenuChange($event.value)"