Lightbox select field values not updated

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?

Hello Chemzo,
I couldn’t reproduce the issue in the following snippet:
http://snippet.dhtmlx.com/5/06830a990

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:
https://snippet.dhtmlx.com/38ee1b370
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.