support
support copied to clipboard
Silent flag in `TaskModel.remove(true)` not working as expected
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!
taskStore.removeAll(true) has the same problem