Skip to content

Commit

Permalink
fix: #14606 restricted pointer events more
Browse files Browse the repository at this point in the history
  • Loading branch information
Denny Müller committed Jan 23, 2024
1 parent 239b86c commit 94670b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
cursor: pointer;
}

.p-icon-wrapper {
.p-datepicker-icon {
pointer-events: none;
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const CALENDAR_VALUE_ACCESSOR: any = {
</ng-container>
</button>
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" />
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" class="p-datepicker-icon" />
<ng-container *ngTemplateOutlet="inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
</ng-container>
</ng-template>
Expand Down

0 comments on commit 94670b3

Please sign in to comment.