angular-calendar icon indicating copy to clipboard operation
angular-calendar copied to clipboard

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

Open dsanthosh2022 opened this issue 3 years ago • 2 comments

Describe the bug

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

Code: <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?

Minimal reproduction of the problem with instructions

https://mattlewis92.github.io/angular-calendar/#/context-menu

Screenshots

From https://mattlewis92.github.io/angular-calendar/#/context-menu, the $event.item is missing.

image

Versions

  • @angular/core:^14.2.1
  • angular-calendar: ^0.30.1
  • Browser name and version: Chrome and Version 107.0.5304.87 (Official Build) (64-bit)

dsanthosh2022 avatar Oct 31 '22 05:10 dsanthosh2022

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me

matts-bot[bot] avatar Oct 31 '22 05:10 matts-bot[bot]

I'm having some issues with the context menu item, using the sample code: image

It returns undefined and I cannot get the value (I'm using Angular V.15)

fsegurai avatar May 25 '23 20:05 fsegurai