mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.72k stars 864 forks source link

Angular 14.0+ calendar- $event.item is missing in the contextMenuItem #1616

Closed dsanthosh2022 closed 1 year ago

dsanthosh2022 commented 1 year ago

We are using the angular-calender (angular-calendar": "^0.28.24) in Angular -10 for scheduling functionality.

We have a context menu, when I click the option in the Add Schedule option will display as shown below

image

<ng-template *ngIf="name=='schedule'" contextMenuItem (execute)="addEvent($event,$event.item)"> Add Schedule </ng-template>

Here, $event.item will give the cell information of where I did right-click and click the Add Schedule

{
    "date": "2022-10-31T05:30:00.000Z",
    "displayDate": "2022-10-31T05:30:00.000Z",
    "isStart": true,
    "id": 1,
    "personcompanyid": "D063521359",
    "name": "WILLIAM FITZSIMMONS",
    "bkcolor": "#b7fd67"
}

Everything is working fine in Angular 10 as expected. Now, we are upgrading the entire project to angular 14. Here, we are using angular-calendar": "^0.30.1. Here, $event.item returns undefined. Can you please help me on this one?

matts-bot[bot] commented 1 year ago

This issue has been closed automatically as it did not follow the issue template, please open a new issue that follows the bug report or feature request template.

If you would like to submit a support issue or get a faster reply, please consider sponsoring me.

Thank you! ✌️