Page 2 of 2

Re: [VUE] Problem with Critical Paths

Posted: Wed Jun 09, 2021 1:40 pm
by saki

We have traced it down to the way Vue-3 implements reactivity. It wraps objects in javascript proxies that is problematic for criticalPaths feature for some reason. We need to investigate what is really happening and fix that.

The ticket is here: https://github.com/bryntum/support/issues/3005


Re: [VUE] Problem with Critical Paths

Posted: Thu Jun 10, 2021 1:42 pm
by saki

There is a workaround you can test before the proper fix will be available:

toggleCriticalPaths() {
	/* global bryntum */
	const gantt = bryntum.query('gantt');
	this.useCriticalPaths = !this.useCriticalPaths;
	gantt.features.criticalPaths.disabled = !this.useCriticalPaths;
},

The trick here is that this way we get the pure gantt instance that is not wrapped in a javascript Proxy.