Label is not persistent as placeholder is being used as the only visual label for a text field (#8221)

This commit is contained in:
Jatin Chugh 2023-02-02 11:07:48 +05:30 committed by GitHub
parent 4043d55fc4
commit e8a3d109d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -260,7 +260,9 @@
"FROM": "From",
"TO": "To",
"FROM-DATE": "From",
"TO-DATE": "To"
"TO-DATE": "To",
"SELECT-FROM-DATE": "Select From Date",
"SELECT-TO-DATE": "Select To Date"
},
"VALIDATION": {
"REQUIRED-VALUE": "Required value",

View File

@ -1,5 +1,6 @@
<form [formGroup]="form" novalidate (ngSubmit)="apply(form.value, form.valid)">
<mat-form-field>
<mat-label>{{ 'SEARCH.FILTER.RANGE.SELECT-FROM-DATE' | translate }}</mat-label>
<input matInput
(input)="forcePlaceholder($event)"
[formControl]="from"
@ -18,6 +19,7 @@
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'SEARCH.FILTER.RANGE.SELECT-TO-DATE' | translate }}</mat-label>
<input matInput
(input)="forcePlaceholder($event)"
[formControl]="to"