Skip to content

Commit 2d21cd7

Browse files
authored
fix: TT-165 Warning message in the console (#641)
1 parent bc93717 commit 2d21cd7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
[format]="24"
100100
formControlName="start_hour"
101101
id="start_hour"
102-
[disabled]="!(project_name.value && project_id.value)"
103102
class="timepicker-input"
103+
[class.timepicker-input--disabled]="!(project_id.value && project_name.value)"
104104
></ngx-timepicker-field>
105105
</div>
106106
</div>
@@ -126,8 +126,8 @@
126126
[format]="24"
127127
formControlName="end_hour"
128128
id="end_hour"
129-
[disabled]="!(project_name.value && project_id.value)"
130129
class="timepicker-input"
130+
[class.timepicker-input--disabled]="!(project_id.value && project_name.value)"
131131
></ngx-timepicker-field>
132132
</div>
133133
</div>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,8 @@ input[type="date"]::-webkit-clear-button {
103103
border-radius: 0.25rem;
104104
}
105105

106+
.timepicker-input--disabled ::ng-deep div{
107+
pointer-events: none;
108+
background-color: #e9ecef;
109+
opacity: 1;
110+
}

0 commit comments

Comments
 (0)