Hello,
I am using gantt (7.1.5) and I update lightbox select fields via the method ‘updateCollection’.
Well, whenever I reload data in my gantt by calling the parse function and I open a lightbox the options in the select fields in the lightbox do not reflect the updated values in the serverList. They have the options they had before I updated data by calling the parse function.
Basically:
const firstLoadEntries = getEntries();
gantt.parse(firstLoadEntries);
const id = gantt.getState().lightbox;
const initialListValues = {...};
gantt.updateCollection("myList", initialListValues);
gantt.resetLightbox();
gantt.showLightbox(id);
const secondLoadEntries = getEntries();
gantt.parse(secondLoadEntries);
const secondLoadListValues = {...};
gantt.updateCollection("myList", secondLoadListValues );
gantt.resetLightbox();
gantt.showLightbox(id);
// values in lightbox are equal to initialListValues and not secondLoadListValues
Values in the serverList are updated correctly and no errors is shown, but the select field in the lightbox keeps showing previous options.
This looks to be a BUG. Does anyone know of a workaround?