I have applied example "confirmation-dialogs".
However, when I update event calendar and I click button "No" in popup confirm.
Event calendar not return to the initial position.
Even I download filtering demo and apply the demo but it's not working, you can see video in file attachnment
So what do I need to make it work
<bryntum-calendar
[crudManager] = "calendarConfig.crudManager"
[eventEditFeature] = "calendarConfig.features.eventEdit"
[date] = "calendarConfig.date"
[modes] = "calendarConfig.modes"
(onCatchAll) = "onCalendarEvents($event)"
[listeners] = "listeners"
</bryntum-calendar>
listeners : {
// Async event listeners allowing you to veto drag operations
beforeDragMoveEnd : async({ eventRecord }) => {
const result = await MessageDialog.confirm({
title : 'Please confirm',
message : `New start time: ${DateHelper.format(eventRecord.startDate, 'ddd LST')}`
});
// Return true to accept the drop or false to reject it
return result === MessageDialog.yesButton;
},
beforeDragResizeEnd : async({ eventRecord }) => {
const result = await MessageDialog.confirm({
title : 'Please confirm',
message : `New duration: ${DateHelper.getDurationInUnit(eventRecord.startDate, eventRecord.endDate, 'h')}h`
});
// Return true to accept the drop or false to reject it
return result === MessageDialog.yesButton;
},
beforeDragCreateEnd : async({ eventRecord }) => {
const result = await MessageDialog.confirm({
title : 'Please confirm',
message : `Want to create an event at ${DateHelper.format(eventRecord.startDate, 'ddd LST')}?`
});
// Return true to accept the drop or false to reject it
return result === MessageDialog.yesButton;
}
},
You can check file attach to make clear problem