Skip to content

Commit

Permalink
Merge pull request #14607 from denny99/14606
Browse files Browse the repository at this point in the history
fix #14606 restricted pointer events more
  • Loading branch information
cetincakiroglu authored Jan 27, 2024
2 parents f305b27 + 3788b9b commit 24fab48
Show file tree
Hide file tree
Showing 2 changed files with 8 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
8 changes: 7 additions & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ export const CALENDAR_VALUE_ACCESSOR: any = {
</ng-container>
</button>
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" />
<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 24fab48

Please sign in to comment.