Lightbox select field values not updated


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.


const firstLoadEntries = getEntries();
const id = gantt.getState().lightbox;
const initialListValues = {...};

gantt.updateCollection("myList", initialListValues);

const secondLoadEntries = getEntries();

const secondLoadListValues = {...};
gantt.updateCollection("myList", secondLoadListValues );

// 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?

Hello Chemzo,
I couldn’t reproduce the issue in the following snippet:

Probably, it is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.

Please, add your configuration in the following snippet and make sure that the issue is reproduced there:
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.