Page 1 of 1

[ANGULAR] Popup cancel not working

Posted: Sat Jun 05, 2021 12:25 pm
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


Re: [ANGULAR] Popup cancel not working

Posted: Mon Jun 07, 2021 11:20 am
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.


Re: [ANGULAR] Popup cancel not working

Posted: Mon Jun 07, 2021 12:43 pm
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.