Skip to content

Commit

Permalink
update for show on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Denny Müller committed Jan 25, 2024
1 parent 94670b3 commit e996840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export const CALENDAR_VALUE_ACCESSOR: any = {
</ng-container>
</button>
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" class="p-datepicker-icon" />
<CalendarIcon (click)="onButtonClick($event)" *ngIf="!inputIconTemplate" [ngClass]="{
'p-datepicker-icon': showOnFocus
}"/>
<ng-container *ngTemplateOutlet="inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
</ng-container>
</ng-template>
Expand Down

0 comments on commit e996840

Please sign in to comment.