Our powerful JS Calendar component


Post by SHQK »

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

Attachments
MessageDialogNotWorking.rar
(385.99 KiB) Downloaded 76 times

Post by saki »

We are investigating the issue and the problem is more deep-seated so we need some time to fix it. We will get back to you when we have a new information.


Post by sergey.maltsev »

Hi, SHQK!

We have this issue to fix it.
https://github.com/bryntum/support/issues/2990

You would be able to get update on next release or if you have a license you can download it from Customer Zone where we have nightly builds.


Post Reply