support icon indicating copy to clipboard operation
support copied to clipboard

Silent flag in `TaskModel.remove(true)` not working as expected

Open taauntik opened this issue 2 months ago • 1 comments

Forum post

Hi everyone,

According to the documentation, the TaskModel.remove() method (Gantt.model.TaskModel#function-remove) supports a silent flag to prevent triggering events. However, when I try to use it, it doesn’t seem to have any effect — the beforeRemove event is still fired as if the flag wasn’t set.

task.remove();
// or
task.remove(true);

Interestingly, when I call the remove(id, true) method from the TaskStore, the silent parameter works correctly and no events are triggered.

Is this the expected behavior, or is it a bug in the TaskModel.remove() implementation?

Thanks in advance for your help!

taauntik avatar Nov 07 '25 14:11 taauntik

taskStore.removeAll(true) has the same problem

taauntik avatar Nov 07 '25 15:11 taauntik