Hi,
when i use the https://bryntum.com/products/calendar/docs/api/Calendar/feature/CalendarDrag#config-validateResizeFn and want to access the recurrenceRule field, it does not work. However it does on the validateMoveFn.
This is the Config you can use in the Basic Demo: https://bryntum.com/products/calendar/examples/basic/
To reproduce the error, create a new recurring event. When one event gets moved the console prints the recurrenceRule. When you resize an event, the recurrenceRule is null.
import { Calendar } from '../../build/calendar.module.js?468679';
import shared from '../_shared/shared.module.js?468679';
const calendar = new Calendar({
// Start life looking at this date
date : new Date(2020, 9, 12),
// CrudManager arranges loading and syncing of data in JSON form from/to a web service
crudManager : {
autoLoad : true,
transport : {
load : {
url : 'data/data.json'
}
}
},
listeners: {
beforeDragMoveEnd: async ({ eventRecord, validation }) => {
return false;
},
beforeDragResizeEnd: async ({ eventRecord, validation }) => {
return false;
}
},
appendTo : 'container',
// Features named by the properties are included.
// An object is used to configure the feature.
features : {
drag: {
async validateResizeFn({ eventRecord, drag }) {
console.log(eventRecord.recurrenceRule)
},
async validateMoveFn({ eventRecord, drag }) {
console.log(eventRecord.recurrenceRule)
}
}}
});