I'm running into something. When you have a Combo that can be emptied, when you empty it the project does not see that change in crudStoreHasChanges(). It's returning false. Therefore, my save function won't go off. Happens in my app on 4.1.0, but also on your TaskEditor demo (attached code based on that).
The listening on the combo is not the point, emptying the combo does not show as a change on the project. I've got this code, which is triggered by a save button click on a toolbar to save all changes to the backend:
onSaveClick() {
const projectHasChanges = this.gantt.project.crudStoreHasChanges();
console.log(projectHasChanges);
if (projectHasChanges) {
backendTools.onSaveClick();
}
else {
Toast.show(gantt.L('No changes to save yet...'));
}
}
After emptying the combo (when is had a value of course), gantt.project.crudStoreHasChanges() should return true but it returns false.
I see. I have tried to reproduce it with our on-line taskeditor demo: https://bryntum.com/examples/gantt/taskeditor/ and it seems that there must be something different.This is what I've got:
project-changes.gif (1.17 MiB) Viewed 755 times
Is there any additional step needed?
Ideally, post please a showcase that we would run, investigate and debug.
Hi,
I couldn't discover what exactly was going on, but after adding nullable: false and nullValue: '' to the combo, the change (clear event on combo) was detected. It's setting the value to '' instead of null, and that's even better in my case.