Open bmblb opened 3 months ago
Reported here: https://forum.bryntum.com/viewtopic.php?f=52&t=30061&p=152547#p152547
Reproducible on advanced Gantt demo.
Replace on add task click handler
async onAddTaskClick() { const { gantt } = this, added = gantt.taskStore.rootNode.appendChild({ name : this.L('New task'), duration : 1 }); // run propagation to calculate new task fields // await gantt.project.commitAsync(); await gantt.project.propagate(); // scroll to the added task await gantt.scrollRowIntoView(added); gantt.features.cellEdit.startEditing({ record : added, field : 'name' }); }
Note, only beforeAdd is triggered. If you call commitAsync() add event will be unblocked.
beforeAdd
commitAsync()
This method is not used anywhere but it is public. It should probably just become an alias to commitAsync(), deprecated and then removed altogether.
Reported here: https://forum.bryntum.com/viewtopic.php?f=52&t=30061&p=152547#p152547
Reproducible on advanced Gantt demo.
Replace on add task click handler
Note, only
beforeAdd
is triggered. If you callcommitAsync()
add event will be unblocked.This method is not used anywhere but it is public. It should probably just become an alias to
commitAsync()
, deprecated and then removed altogether.