Skip to content

Commit

Permalink
fix(date-picker): Addressing the comments #8917
Browse files Browse the repository at this point in the history
  • Loading branch information
valadzhov committed Feb 11, 2021
1 parent 154cf9f commit 124a179
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -8,7 +8,7 @@
<igx-prefix>
<igx-icon>today</igx-icon>
</igx-prefix>
<label *ngIf="labelVisibility&&!_labelDirectiveUserTemplate" igxLabel>{{label}}</label>
<label *ngIf="labelVisibility&&!_labelDirectiveUserTemplate" igxLabel>{{labelTemp}}</label>
<input
class="igx-date-picker__input-date"
igxInput
Expand All @@ -27,7 +27,7 @@
<igx-prefix (click)="onOpenClick($event)">
<igx-icon>today</igx-icon>
</igx-prefix>
<label *ngIf="labelVisibility&&!_labelDirectiveUserTemplate" igxLabel>{{label}}</label>
<label *ngIf="labelVisibility&&!_labelDirectiveUserTemplate" igxLabel>{{labelTemp}}</label>
<input
class="igx-date-picker__input-date"
igxInput
Expand Down
Expand Up @@ -190,6 +190,11 @@ export class IgxDatePickerComponent implements IDatePicker, ControlValueAccessor
this._label = v;
}

public get labelTemp() {
return this._label;
}

/** @hidden @internal */
public get labelTemplate(): IgxLabelDirective {
return this._labelDirectiveUserTemplate;
}
Expand Down

0 comments on commit 124a179

Please sign in to comment.