I reproduced this on the Advanced demo, by replacing
new Gantt({
with
const gantt = new Gantt({
and appending this code snippet to the bottom:
['baselines', 'criticalPaths', 'dependencies'].map((feature) => {
gantt.features[feature].on({
enable: () => console.log('Feature enabled', feature),
disable: () => console.log('Feature disabled', feature)
});
});
The console logs work correctly for criticalPaths and dependencies, but not for baselines.
We are in the process of upgrading our Gantt version - we are currently implementing version 4.2.6. This seemed to work on the previous version we were using, but not 4.2.6.
Please let me know if I got anything wrong here or if you need any more info.