[ANGULAR] Events UI does not update when using batch mode
Hi, I have found after updating the scheduler from v3.1.3 to 5.0.6 that when I update an event property (eg the startDate), that the UI does not update, unless I remove the calls to this.scheduler.eventStore.beginBatch();
and this.scheduler.eventStore.endBatch();
. Without these the UI does update.
I have my eventstore instantiated as follows
public schedulerConfig = {
eventStore: {
modelClass : SchedulerEventModel,
data: []
}
};
...
<bryntum-scheduler #scheduler
[eventStore]="schedulerConfig.eventStore"
To update, I get a refererence to the event store records
this.scheduler.eventStore.beginBatch();
const currentEvents: Array<any> = this.scheduler.eventStore.records;
// update properties, eg startDate
this.scheduler.eventStore.endBatch();
and then I will set properties I want to update on them.
One thing I notice, is if I debug into the startDate setter, I see the following...
ie this.batching
is undefined. I am not sure if this is significate or not.
At any rate, it certainly did use to update the UI, and if I remove the batch calls it does as well.
Is there something else I have missed?
Thanks in advance