Our powerful JS Calendar component


Post by tdset »

Hello,

we're using timeline view and when enabling the contextual menu via Calendar features an error is thrown when right clicking on the timeline (both on or outside a resource).

This used to work fine with v4, but it doesn't work with v5.

The error is:

SchedulerInterface.js:124 Uncaught TypeError: activeClient.getDateFromEvent is not a function

I have attached an example with the error in action. I've simplified the example as much as possible, the contextual menu on the timeline is hidden for example. Yet the error it's still thrown.

To reproduce this within the browser, right click on the timeline within the timeline mode (https://www.dropbox.com/s/zjqyqno3tcdk4od/Snipaste_2022-03-07_23-39-57.png?dl=0)

const calendar = new Calendar({

datePicker: {
    events: true
},

date: new Date(),

// this will throw an error when you right click within the timeline mode
features: {
    scheduleMenu: true,
    eventMenu: {
        items: {
            editEvent: {
                text: "Edit",
                weight: 100,
            },
            duplicateEvent: {
                text: 'Copy',
                icon: 'b-fa b-fa-clone',
                onItem: 'up.duplicateEvent',
                weight: 200,
            },
            deleteEvent: {
                text: "Archive",
                weight: 300,
            }
        }
    },
},

crudManager: {
},

appendTo: 'container',

tbar: {
},

bbar: [
],

mode: 'timeline',

Let me know if you can reproduce the issue using the attached example,

Thank you

Attachments
calendar-scheduler.zip
(421.58 KiB) Downloaded 48 times

Post by Animal »

Thanks for the report. Here's the ticket: https://github.com/bryntum/support/issues/4323


Post Reply