Page 1 of 1

taskEditCanceled event isn't triggered

Posted: Tue Mar 21, 2023 9:30 pm
by mos

The taskEditCanceled event doesn't appear to be firing on SchedulerPro.
I also wasn't able to spot that event type with an attached catchAll listener.

The pen referenced below simply added a listener + console.log to your TaskEditor sample.
Sample Pen.

I'd be curious aftertaskedit returns a property to determine if the selection was a save or cancel.
The intent is to reverse all store changes (via taskeditor grid) that haven't been committed.

Thanks


Re: taskEditCanceled event isn't triggered

Posted: Wed Mar 22, 2023 5:18 am
by tasnim

Hi,

Thank you for your report. Reproduced! We'll investigate it. Here is the ticket to track progress https://github.com/bryntum/support/issues/6430

Good Luck :),
Tasnim


Re: taskEditCanceled event isn't triggered

Posted: Thu Mar 23, 2023 1:24 pm
by tasnim

Hi mos,

I'm not able to reproduce the issue anymore. In your code pen also.
Could you please try and let us know if you're able to reproduce the issue?


Re: taskEditCanceled event isn't triggered

Posted: Thu Mar 23, 2023 2:23 pm
by mos

Confirming this still an issue upon testing (also in the referenced pen).

The taskEditCanceled event doesn't fire when the taskEditor is closed.


Re: taskEditCanceled event isn't triggered

Posted: Thu Mar 23, 2023 2:36 pm
by tasnim

Hi,

Please check the attached video I'm able to reproduce with the pen


Re: taskEditCanceled event isn't triggered

Posted: Thu Mar 23, 2023 2:45 pm
by mos

I see the issue here. It only fires when opening existing items.
It still does not fire when a new event editor is opened and closed.

May I confirm if this is expected behavior?
...or is there another listener that captures when any task editor is cancelled/closed?


Re: taskEditCanceled event isn't triggered

Posted: Thu Mar 23, 2023 3:01 pm
by tasnim

Thanks for your clarification. Confirmed https://github.com/bryntum/support/issues/6430