Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: TT-216 add tabIndex attribute to materialDatePicker and to Date …
…divs
  • Loading branch information
bytesantiago committed Sep 7, 2021
commit 70620479bcf17de4a6f8a53ccce4131a148312d5
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

<div class="form-group row" >
<label class="col-12 col-sm-2">Date in:</label>
<div class="col-12 col-sm-4">
<div class="col-12 col-sm-4" tabindex="0">
<input
matInput
formControlName="start_date"
Expand All @@ -93,6 +93,7 @@
(ngModelChange)="onStartDateChange($event)"
[max]="getCurrentDate()"
onkeydown="return false"
[tabIndex]="1"
(click)="openOrCloseDatePicker(datepickerStartDate)"
(dateInput)="start_date.setValue($event.value.format('YYYY-MM-DD'))"
[matDatepicker]="datepickerStartDate"
Expand All @@ -115,7 +116,7 @@

<div class="form-group row" *ngIf="!goingToWorkOnThis || !canMarkEntryAsWIP">
<label class="col-12 col-sm-2">Date out:</label>
<div class="col-12 col-sm-4">
<div class="col-12 col-sm-4" tabindex="0">
<input
matInput
formControlName="end_date"
Expand All @@ -127,6 +128,7 @@
required
[max]="getCurrentDate()"
onkeydown="return false"
[tabIndex]="1"
(click)="openOrCloseDatePicker(datepickerEndDate)"
(dateInput)="end_date.setValue($event.value.format('YYYY-MM-DD'))"
[matDatepicker]="datepickerEndDate"
Expand Down