Our state of the art Gantt chart


Post by beotech »

Hi, when using the Task Editor, the beforeClose event is triggered when clicking outside the popup or on the top right hand cross, but it is NOT triggered when clicking on the Cancel button.

You can add this code to the basic Gantt example to observe it :

gantt.on('afterTaskSave', function(event) {
  console.log('afterTaskSave');
});

gantt.on('beforeTaskDelete', function(event) {
  console.log('beforeTaskDelete');
});
gantt.on('selectionchange', function(event) {
  console.log('selectionchange');
  if (gantt.features.taskEdit.editor) {
      gantt.features.taskEdit.editor.on('beforeShow', function(event) {
       console.log('beforeShow');
      });
      gantt.features.taskEdit.editor.on('beforeClose', function(event) {
       console.log('beforeClose');
      });
   }

});

Post by mats »

Looks like a bug yes - ticket: https://github.com/bryntum/support/issues/1940


Post Reply