bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Gantt event "beforeTaskDelete" not always triggered #10037

Open taauntik opened 2 weeks ago

taauntik commented 2 weeks ago

Forum post

Hi, I believe I've discovered a potential bug related to the Gantt event "beforeEventDelete" (or "beforeTaskDelete"). I tested this in both latest versions (v6.0.5 and v.6.1.0-beta-1). Specifically, the event is not being triggered when I delete a task using the menu that appears upon right-clicking the task: TaskRightClickMenu.png

Use this piece of code to reproduce it:

gantt.addListener('beforeTaskDelete', (eventData) => {
            console.log("Task was deleted");
});

This behavior seems inconsistent, as I would expect the event to fire in this scenario just as it would when tasks are deleted through other methods.

Thank you for your support, Luca.