Skip to content

Commit 1e23038

Browse files
authored
fix: TT-216 add tabIndex attribute to materialDatePicker and to Date divs (#747)
1 parent 68a1ccb commit 1e23038

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
<div class="form-group row" >
8282
<label class="col-12 col-sm-2">Date in:</label>
83-
<div class="col-12 col-sm-4">
83+
<div class="col-12 col-sm-4" tabindex="0">
8484
<input
8585
matInput
8686
formControlName="start_date"
@@ -93,6 +93,7 @@
9393
(ngModelChange)="onStartDateChange($event)"
9494
[max]="getCurrentDate()"
9595
onkeydown="return false"
96+
[tabIndex]="1"
9697
(click)="openOrCloseDatePicker(datepickerStartDate)"
9798
(dateInput)="start_date.setValue($event.value.format('YYYY-MM-DD'))"
9899
[matDatepicker]="datepickerStartDate"
@@ -115,7 +116,7 @@
115116

116117
<div class="form-group row" *ngIf="!goingToWorkOnThis || !canMarkEntryAsWIP">
117118
<label class="col-12 col-sm-2">Date out:</label>
118-
<div class="col-12 col-sm-4">
119+
<div class="col-12 col-sm-4" tabindex="0">
119120
<input
120121
matInput
121122
formControlName="end_date"
@@ -127,6 +128,7 @@
127128
required
128129
[max]="getCurrentDate()"
129130
onkeydown="return false"
131+
[tabIndex]="1"
130132
(click)="openOrCloseDatePicker(datepickerEndDate)"
131133
(dateInput)="end_date.setValue($event.value.format('YYYY-MM-DD'))"
132134
[matDatepicker]="datepickerEndDate"

0 commit comments

Comments
 (0)